Thu, 31 Mar 2011 18:34:47 -0600 Jason Creighton <jcreigh@...400...> kirjoitti:
As an aside, what do you guys use to debug Inkscape? I tried just using gdb, but I found that setting breakpoints changed the behavior of the program (!), so I ended up just printing to stdout with debugging info, which is quite tedious.
gdb is what I use. Usually it works just fine, but using a debugger can occasionally alter the behaviour of a program. If this happens, it's usually sign of hidden error, such as writing past the end of an array. See http://en.wikipedia.org/wiki/Heisenbug#Heisenbug
When a heisenbug causes a crash, core dumps are valuable. You can run the program without debugger attached and after it has crashed, the program state is saved in core file, which can be inspected with debugger. When there is no crash, though... Printing to stdout may be the best alternative you have.