Skip to content

Disassembly Debugging

Haneef Mohammed edited this page Jan 5, 2022 · 14 revisions

While in a debug session and in a paused state, you can invoke the disassembler and view the disassembly for that source code. This Disassembly view is provided by Microsoft/VSCode and I would still consider it a work in progress but it has been functional thus far. Cortex-Debug provides the backend and VSCode provides the window/menus that you interact with. Here are the features thus far

  • Trigger Disassembly either from the editor or in the CALL STACK window by right-clicking
    • It can disassemble an entire executable but it will only do it based on how far you scroll. It is more like on-demand disassembly.
  • You can arrange your windows such that the disassembly and source code windows are side by side
  • You can single step in either of the windows. If the focus is in the disassembly window, it will do a step/next at an instruction level
  • You can set breakpoints at any instruction. The UI to set conditions and hit counts are not yet enabled although our backend supports