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] Launch Debugging does not appear to work on Ubuntu #428

Closed
2 of 4 tasks
igricart opened this issue Apr 16, 2021 · 5 comments
Closed
2 of 4 tasks

[bug] Launch Debugging does not appear to work on Ubuntu #428

igricart opened this issue Apr 16, 2021 · 5 comments
Labels
bug Something isn't working Debugging Linux ROS1

Comments

@igricart
Copy link

(Please add appropriate labels)

  • Windows: (Version)
  • Linux: (Ubuntu/18.04)
  • ROS 1: Melodic
  • ROS 2: Dist

<Version of the plugin>

<Copy the Version information from the Help | About menu>
Version: 1.55.2
Commit: 3c4e3df9e89829dce27b7b5c24508306b151f30d
Date: 2021-04-13T09:37:02.931Z
Electron: 11.3.0
Chrome: 87.0.4280.141
Node.js: 12.18.3
V8: 8.7.220.31-electron.0
OS: Linux x64 5.4.0-70-generic

what is the bug

<current behavior>
Neither Launch or Attach are working

Repro steps

<how to reproduce the bug. Please attach sample files or github repo if appropriate.>

  1. Build with debug flags catkin build --cmake-args -DCMAKE_BUILD_TYPE=Debug
  2. Define tasks in launch.json
{
    // Use IntelliSense to learn about possible attributes.
    // Hover to view descriptions of existing attributes.
    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
    "version": "0.2.0",
    "configurations": [
        {
            "name": "ROS: Attach",
            "type": "ros",
            "request": "attach"
        },
        {
            "name": "ROS: Launch",
            "type": "ros",
            "request": "launch",
            "target": "/home/imr/Documents/ps/ps_ws/src/belt_loader_behavior_tree/launch/dummy_launch.launch"
        }
    ]
}
  1. Setup roslaunch file
<launch>
  <node pkg="belt_loader_behavior_tree" type="executor_tree" name="test_bt">
    <param name="tree_xml" value="/trees/dummy_tree.xml" />
  </node>
</launch>
  1. Start debugger with ROS:Launch

expected behavior

<what you would expect to happen>
Start node

additional context

<any additional information would be helpful for a better understanding>
The roslaunch works just fine if I run manually:

roslaunch belt_loader_behavior_tree dummy_launch.launch
@igricart igricart added the bug Something isn't working label Apr 16, 2021
@ooeygui
Copy link
Member

ooeygui commented Apr 18, 2021

roscore currently needs to be running for launch debugging to work.
#156

However, there is an inprogress feature to automatically launch roscore #429

@ooeygui ooeygui closed this as completed Apr 18, 2021
@igricart
Copy link
Author

I have the same behavior even with roscore running

@ooeygui ooeygui reopened this Apr 19, 2021
@ooeygui ooeygui changed the title [bug] [bug] Launch Debugging does not appear to work on Ubuntu Apr 19, 2021
@hengjiUSTC
Copy link

I got similar issue and detail in #379

@lovelyyoshino
Copy link

Using vscode multi-file debugging found that roslaunch can not be found, which means that there is no corresponding path.So first, check to see if "c_cpp_properties.json" is included in the project's "includePath" :Such as "{$workspaceFolder} / SRC/robot_test/ * *", and then check whether to add the file path to the to / ~ /.bashrc and then source it. Finally, reopen VS Code and re-test.

@ooeygui
Copy link
Member

ooeygui commented Jul 13, 2021

Fixed - we now build with symbols on Linux by default.

@ooeygui ooeygui closed this as completed Jul 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Debugging Linux ROS1
Projects
None yet
Development

No branches or pull requests

4 participants