Comment 4 for bug 1199957

Revision history for this message
Hans Joachim Desserud (hjd) wrote :

I ran widelands in gdb (the GNU debugger). Basically you run wl through the debugger rather than executing it directly, which gives you access to a lot more debug information than normally. You can run this on any wl build, though a debug build will give you more information.

What I did:
1. Run "gdb widelands" in a terminal and wait for it to load.
2. You should get a gdb prompt, in other words the line starts with (gdb)
3. Here you can run commands, for instance "run" which will start widelands
4. Play it as normally, and when it crashes you can run "backtrace" in the debugger, printing similar output to the one above.

There also a lot other nifty things gdb can do, but I only know the basics I'm afraid. Oh, and most commands have shortcuts, for instance r=run, bt=backtrace which saves typing.