Skip to content
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] Debugger not attach to python node #169

Closed
rickstaa opened this issue Feb 28, 2020 · 3 comments
Closed

[bug] Debugger not attach to python node #169

rickstaa opened this issue Feb 28, 2020 · 3 comments
Assignees
Labels
bug Something isn't working investigating

Comments

@rickstaa
Copy link

rickstaa commented Feb 28, 2020

general information
OS version: Ubuntu 18.04
Plugin version: 0.6.2

what is the bug
When trying to attach to a python ROS node nothing happens.

expected behaviour
The vscode ROS extension successfully attaches to the running python ROS node.

steps to reproduce

  1. Clone the rospy example repository.
  2. Build the catkin workspace
  3. Source the catkin workspace
  4. Open visual studio code
  5. Open a system terminal.
  6. Start the ros talker node using rosrun my_robot_pkg talker.py inside the system terminal.
  7. Start the ros listener node using rosrun my_robot_pkg listener.py inside the system terminal.
  8. Add the ROS attach option to your launch.json file.
  9. Try to attach to the ROS python node using python->listener.py.

additional info
This behaviour is present both in the stable python debugger as well as the new insiders python debugger. The vscode OUTPUT window doesn't display any error or warning message.

@rickstaa rickstaa added the bug Something isn't working label Feb 28, 2020
@rickstaa rickstaa changed the title [bug] Attach to python node not working [bug] Debugger not attach to python node Feb 28, 2020
@ooeygui ooeygui self-assigned this Mar 11, 2020
@seanyen
Copy link

seanyen commented May 20, 2020

@rickstaa Sorry for the long overdue. Is it still reproducible? I tried the following combination and I can attach and debug the Python node with your example.

Platform: Ubuntu 18.04

# output from `code --list-extensions --show-versions`
ms-iot.vscode-ros@0.6.3
ms-python.python@2020.5.80290
ms-vscode.cpptools@0.28.0

@rickstaa
Copy link
Author

rickstaa commented May 21, 2020

@seanyen Thanks a lot for the heads-up! The issue is indeed solved in:

Vscode version info

Version: 1.46.0-insider
Commit: 6849775440496504e0677ffcf2a46d47ad9130f5
Date: 2020-05-15T05:29:39.210Z
Electron: 7.2.4
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Linux x64 5.4.26-050426-generic snap

Extensions version info

ms-iot.vscode-ros@0.6.3
ms-python.python@2020.5.80290
ms-vscode.cpptools@0.28.1

@hangdonglin
Copy link

Hi, I have encountered the same situation, it cannot attach to the listener or talker node.
How did you solve it ? just by updating the vscode version?
Here is my vscode version infos:
Version: 1.67.2
Commit: c3511e6c69bb39013c4a4b7b9566ec1ca73fc4d5
Date: 2022-05-17T18:23:40.286Z
Electron: 17.4.1
Chromium: 98.0.4758.141
Node.js: 16.13.0
V8: 9.8.177.13-electron.0
OS: Linux x64 5.4.0-113-generic snap

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working investigating
Projects
None yet
Development

No branches or pull requests

4 participants