Robotics StackExchange | Archived questions

How do you step into plugins with gdb?

Let's say you wrote a new local planner plugin for the movebase node. I can step through the movebase code just fine, but when I try to follow the plugin pointer into my local planner, I end up in a boost wrapper that only checks that the pointer is not null. So, how do you use gdb to debug plugins?

Asked by MartinS on 2018-01-09 20:55:30 UTC

Comments

You say you want to follow the code execution into your plugin, but it sounds like you're doing it by reading memory instead of following code execution. I'd start by setting a breakpoint inside your plugin, and wait for gdb to hit it.

Asked by ahendrix on 2018-01-10 01:04:01 UTC

If that gives you trouble, please edit your question with the output from GDB.

Asked by ahendrix on 2018-01-10 01:04:52 UTC

Answers