目录

Debugging Assembly Code

You can view disassembly code and debug with DevEco Studio. In addition, when the program breaks at a location without source code (for example, stepping into a function without debugging information), DevEco Studio automatically opens the disassembly view to display the current stop address of the program and the corresponding disassembly code.

Disassembly View

To view the assembly code corresponding to a stack frame, right-click the stack and choose Disassemble Frame from the shortcut menu.

On the Disassembly page, you can view the source code, function names, and switch to the corresponding source code.

Setting Breakpoints in Assembly Code

On the Disassembly page, you can set breakpoints for debugging. Then, the app/atomic service will pause at the specified address.

Single Stepping

On the Disassembly page, you can click the following buttons to perform single stepping of assembly instructions.