I want to record the value of a certain register or specific memory location when the program is being debugged. e.g. in the following segment:
.text:0FD6268D shr ecx, 4 .text:0FD62690 and esi, 0Fh .text:0FD62693 movzx ecx, ds:byte_FF27790[ecx] .text:0FD6269A mov [edx], cl .text:0FD6269C inc dword ptr [eax] .text:0FD6269E mov edx, [eax]
This is a part of a function which is accessed many times and I want to print, to file, the values of:
ecx @.text:0FD6268D and ds:byte_FF27790 @.text:0FD62693. I need this printed every time the program gets there during the debugging.
How can I accomplish this using idapython?