Design Discussion: Debugging Compiled Python #5
ranchhandrobotics
started this conversation in
Ideas
Replies: 1 comment 2 replies
-
|
I notice that --symlink-install may not compile python code, since it just create a soft link to the source python code. And with --symlink-install, the "launch" mode of the extension works. So is it possible to attach if compile with --symlink-install? |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The ROS extension leverages the Python extension under the covers, with special understanding of the ROS environment (well, mostly) it is running in. However, Colcon builds compiled python without debug symbols.
"Attach" to python was a hold over from the ROS 1 version of the extension - which worked because python wasn't compiled. However, Attach has never worked on ROS 2. Unless I'm missing something - we can't get blood from a rock - or in this case make a compiled python ROS node debuggable after the fact.
I've contemplated solutions to this:
How would you solve this?
Beta Was this translation helpful? Give feedback.
All reactions