trezor-firmware
trezor-firmware copied to clipboard
VS Code debugging of C and Rust code
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