-
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
[feature] Print pretty when c++ ros program is launched thru attach or launch #240
Comments
@lusu8892 Thanks for the feedback. And sorry I am not familiar with the |
So, as shown in the pc, there are two programs defined in launch.json, only the first could turn on pretty-printing for the underlying gdb debugger. But for the second case, the setupCommands can not be mentioned, so pretty-printing can not be turned on. Pretty-printing is a feature from GDB debugger. Here is link |
I'd really appreciate this feature. It enables you to debug std library containers like strings, vectors, maps etc. Without this line, the variables view is simply not usable. Just check this example: std::vector<double> test = {1, 2, 3, 4, 5}; Please enable pretty printing - its a must have. Btw: It can be enabled manually while debugging in the debug console (requires a step/F5 to activate): |
You can still use the "standard" gdb-attach approach which works for me and makes pretty printing work from attach:
|
We have added pretty printing to the default launch. |
Hi! Hickey |
what is needed
May I ask how to setup pretty-printing when a c++ ros node is launched thru
type: ros
request: attach
or
type: ros
request: launch
The pretty-printing setting for gdb can be easily setup thru setupCommands when launch a C++ program of type: cppdbg. But this setupCommands seems not supported by any type: ros program.
The text was updated successfully, but these errors were encountered: