Gazebo | Ignition | Community
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Here is the solution, that worked for me. Add a breakpoint to wahtever you want to debug. Do so at the very beginning of the gdb command in gdbrun.

gdb -ex "set breakpoint pending on"  -ex "break <some source file from plugin>:line_nr" -x ${TMPFILE} "${EXEC}"

For debugging:

  1. Only start the gzserver in the roslaunchfile
  2. Check in the output if the breakpoints are set pending
  3. start the gzclient manually in an extra window
  4. set additional breakpoints if required once gdb stops the gzserver
  5. usual gdb debugging