-
Notifications
You must be signed in to change notification settings - Fork 95
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[bug] Debug configuration not able to attach to ROS2 node or launch it #813
Comments
Hi there, VSCode ROS extension tries to initialize ROS by itself; it seems that it is unable to find your virtual environment. There are two settings you can try in your launch file, which overrides the extensions default processing of environment:
|
Hi there, From the two options you gave I used the first My guess is that maybe the ros extension does not recognize the extended Also later I could try to move the venv's packages to |
Just wanted to give a quick update. I solved the problems regarding the ROS extension as well as those with the Python environment. |
VSCode Extension for ROS v.0.8.3 (same on target and remote machine)
VSCode Info (same on target and remote machine):
Version: 1.72.2
Commit: d045a5eda657f4d7b676dedbfa7aab8207f8a075
Date: 2022-10-12T22:15:17.426Z
Electron: 19.0.17
Chromium: 102.0.5005.167
Node.js: 16.14.2
V8: 10.2.154.15-electron.0
OS: Linux arm64 4.9.253-tegra
Sandboxed: No
what is the bug
Trying to attach to the running ros2 node (pure python package) or launching it via the VSCode Debugging Configurations does not work. No output is shown and the debugger does not start. I searched possible outputs in VSCode like for example under ROS or Python but nothing is shown. I can launch the node normal via command line. First I thought it was maybe due to trying to run via SSH-Connection but local execution on the target machine does not work.
My guess is maybe that the python venv I use is not recognized but due to missing outputs I'm unable to confirm this. I extended the python-paths for VSCode and resolution with IntelliSense works as normal.
Repro steps
install/package/.../*.launch.py
expected behavior
Node launches and Python debugger is active stopping at the selected break points.
The text was updated successfully, but these errors were encountered: