[Feature/Experiment]: Proper VsCode debugging #398
Labels
discussion
This issue needs to be discussed.
enhancement
New feature or request
general
infrastructure
Docker, Project setup, ...
testing
Milestone
Description
As already discussed in the Discord help channel, there currently seems to be no proper way to debug ros nodes.
It is only possible to watch the ros console output or use
rosrun <package> <node>
in the build-agent container to watch its python console.But proper debugging support inside VsCode with breakpoints and data insight would probably speed up development times significantly.
I propose a solution/experiment:
VsCode supports attaching to an external debugging server: debugpy
This debugger can be attached to an already running python executable in two ways:
The solution might be to create a ros debug wrapper node:
importlib.import_module()
VsCode can then connect to this debugger on the specified port. (Dockerfiles have to be adjusted to export a range of ports for debugging)
Definition of Done
or
The text was updated successfully, but these errors were encountered: