LAPKT-dev / LAPKT-public

LAPKT public repository
GNU General Public License v3.0
39 stars 24 forks source link

VS Code and terminal debugging interface for lapkt's Python Boost hybrid libraries. #39

Closed anubhav-cs closed 4 years ago

anubhav-cs commented 4 years ago

A brief overview of how to set up a debug environment and perform debugging operations on the VS Code.

Note- In LAPKT, .vscode/launch.json has been configured to run python program with --wait_debug option. The option is present in lapkt python script and causes the program to wait for user input.

A brief overview on how to use gdb from terminal to debug on any Linux OS.

anubhav-cs commented 4 years ago

This feature is up and running. Relevant commits - 036316e and 01e9808

anubhav-cs commented 4 years ago

It should be noted that the addition of --with_debug option was a work around. Ideally, we should be able to attach gdb when the python program is paused on a breakpoint or at the start of the program(via the "stopOnEntry": true configuration in launch.json). However, it was observed that attaching gdb, while the python program was stopped in such a manner, caused issues in the symbol table loaded by gdb.