Ask Your Question
0

ROS debugging in VS code C++

asked 2019-05-10 14:36:35 -0600

murali1842 gravatar image

Is VS code is a good IDE for ROS development in C++? Anybody have an good cpp_properties, launch.json and tasks.json files to share? How to overcome the following error: -- "fatal error: ros/ros.h: No such file or directory"

edit retag flag offensive close merge delete

Comments

Strictly speaking, VS Code isn't an IDE like Visual Studio, Eclipse, etc. but rather a very flexible text editor that can be extended to function similarly to an IDE. I'm only saying this because I've found it to be difficult to enable debugging in VS Code and actually switch to an IDE for debugging or use something like gdb from the terminal. If you can get it to debug C++ then I can't imagine it would be much more difficult to get it to work with ROS.

jayess gravatar image jayess  ( 2019-05-10 17:06:09 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2021-01-04 04:41:27 -0600

ticotico gravatar image

There are nice tutorials & descriptions for using VS Code for ROS, see:

  • VS Code Extension (including video): Link
  • Setup Debugging for C++ or Python: Link

This should get you started...have fun!

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

Asked: 2019-05-10 14:36:35 -0600

Seen: 830 times

Last updated: Jan 04