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

"Start and Debug External Application" misses ROS symbols/paths #384

Open
beetleskin opened this issue Aug 21, 2019 · 2 comments
Open

"Start and Debug External Application" misses ROS symbols/paths #384

beetleskin opened this issue Aug 21, 2019 · 2 comments

Comments

@beetleskin
Copy link

beetleskin commented Aug 21, 2019

When I want to use the debug-mode "Start and Debug External Application" on any ros-based executable, gdb complains about missing libraries. E.g. try to start the roscpp_tutorials talker:

/opt/ros/melodic/lib/roscpp_tutorials/talker: error while loading shared libraries: libroscpp.so: cannot open shared object file: No such file or directory

This prevents me from starting my nodes with gdb, which is quite useful.

This works fine when I run qtcreator_ros from terminal with sourced catkin workspace.


Btw, is it possible to debug launch-files with qtcreator_ros? Or easily start rosrun commands with gdb?

@Levi-Armstrong
Copy link
Member

I can think of two things.

  1. If you have not build the project in Qt Creator then it environment is not setup for your workspace and the environment being passed to the process launching your process is not correct.

  2. The Qt Creator environment is not being passed to the process used to launch the external application. This may be the intended behavior of this since it says external application. I typically use the two above this Attached to Started or Unstarted Application.

@beetleskin
Copy link
Author

Since the other debugging flavors work, I think it must be option 2.

I also rather attach, but sometimes there's stuff going on right on initialization of a ros node, which is then not captured.

Btw. it works also well, if I define the application as Run configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants