How do you step into plugins with gdb?

asked 2018-01-09 19:55:30 -0500

MartinS gravatar image

Let's say you wrote a new local planner plugin for the move_base node. I can step through the move_base 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?

edit retag flag offensive close merge delete


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.

ahendrix gravatar image ahendrix  ( 2018-01-10 00:04:01 -0500 )edit

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

ahendrix gravatar image ahendrix  ( 2018-01-10 00:04:52 -0500 )edit