trezor-firmware icon indicating copy to clipboard operation
trezor-firmware copied to clipboard

VS Code debugging of C and Rust code

Open marnova opened this issue 3 years ago • 0 comments
trafficstars

Idea

It would be nice to be able (for start) to debug C and Rust from VS Code. Now the only option is to use gdb that is run by core/emu.py -D and control it with commands.

This is not very user friendly.

MicroPython code is not so easy to debug (e.g. https://github.com/microsoft/debugpy/issues/781)

Possible solution

Modify core/emu.py to start dbgserver and connect to it from VS Code.

Possible souces

  • https://code.visualstudio.com/docs/cpp/launch-json-reference
  • https://github.com/Microsoft/vscode-cpptools/issues/78

marnova avatar Aug 03 '22 11:08 marnova