![](https://secure.gravatar.com/avatar/15f5e6abf26f57e1838c29a8356ce7f8.jpg?s=120&d=mm&r=g)
Bill Baxter wrote:
On 6/9/07, Bill Baxter <wbaxter@...400...> wrote:
Let me back up with a more basic question: how do I debug inkscape? The build make by buildtool.exe doesn't seem to have debug symbols.
Still looking for info on this. I guess I need to add "-g" somewhere in build.xml?
I think around line 249: <flags> -Wall -O3 -mms-bitfields </flags>
Change -O3 to -g. If I remember correctly , building will become *very* slow. I'd advice against using -g. A lot of the function names are still present in the normal builds (use "file inkscape.exe inkscape.dbg" in gdb), if you need detailed stepping, I usually recompile with a g_message("%d",i++) every line :) It is much much quicker.
fprintfs are scattered through the code making me thing
those should
work, but I found this INKSCAPE_DEBUG_LOG env var, but that doesn't seem to make fprintf stderr output work. Maybe I need to build inkscape as a console app? Where do
I set that?
I found the answer to this one -- need to add a "-mconsole" flag after "-mwindows" in build.xml.
See here: http://wiki.inkscape.org/wiki/index.php/FAQ#I.27m_on_Windows.2C_and_command_...
Cheers, Johan