Skip to content

Debugging things

Fylwind edited this page Nov 15, 2016 · 1 revision

libtool and libcheck make things hard to debug.

To debug a test, you would want to run it like this:

CK_FORK=no ./libtool --mode=execute gdb tests/check_foxbot

This prevents libcheck from forking (which would eat the segmentation fault or whatever signal), and the ./libtool --mode=execute command is required for gdb to locate the executable (tests/check_foxbot is not a real executable, it's a wrapper script; the real executable is actually in .libs).

Clone this wiki locally