Enter Debug under Win7 system

I want to use the Debug tool under Win7 64-bit system. After cmd, I found that debug is not an internal command. This is because the system itself does not have a Debug tool. We can implement it through DOS and Win7 32-bit Debug.

1. Download DOSBox

2. Download Debug.exe

3. Install DOSBox

4. Put Debug.exe on a drive letter other than the C drive (choose to place it on the D drive)

5. Open DOSBox

6. Enter mount cd:\ (Enter) (where d is the drive letter where your debug.exe file is located)

7. Type c: (Enter)

8. Enter debug (Enter) (there is a bar in front of the cursor, indicating that the debug mode has been entered)

 

[Debug Common Commands]

【R command】

  • R View and change the value of the register
  • R CS 1000 Change the value of the segment address
  • R IP 0 Change the value of the offset address

【D command】

  • D View the current code block
  • D 0000:0000 FF View the specified code FF is the viewing length

【E command】

  • E 0000:0000 1 2 3 Rewrite the specified machine code

【U command】

  • U 0000:0000 Translate the specified code into assembly code

【T command】

  • T execute the current code

【A command】

  • A 0000:0000 Write code in assembly form in the specified code segment

Guess you like

Origin blog.csdn.net/chendongpu/article/details/113177923