How can I do the instruction level debugging with CDT

。_饼干妹妹 提交于 2019-12-22 07:07:10

问题


I am using CDT for developing C programs.

When the debugger stops on a break point and I do "Step Over" or "Step Into" the debugger behaviour is based on the source line level but not on the instruction level.

Can I do debugging on the instruction level in CDT?


回答1:


In the Debug window (Debug perspective) there is an Instruction Stepping Mode button: It looks like a small i with an arrow i=>).
You can also set breakpoints on specific instructions in the Disassembly window.




回答2:


As far as I know, CDT is just a wrapper over a standalone debugger. So I'd suggest skipping CDT and checking the documentation of the debugger you are using.




回答3:


Instruction Stepping Mode can also be activated from the menu. While debugging:

  • Run
  • Instruction Stepping Mode

This asks how to enable it by default: How to enable instruction stepping in eclipse-cdt (Eclipse for C++) by default?

Tested on 4.6.3.



来源:https://stackoverflow.com/questions/3112420/how-can-i-do-the-instruction-level-debugging-with-cdt

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!