I try to debug my GTK+ application with gdb, but it hangs my X server when I hit some breakpoint. Any Idea?
From Federico Mena Quintero: “X is not locked up. It is likely that you are hitting a breakpoint inside a callback that is called from a place in Gtk that has a mouse grab.” “Run your program with the –sync option; it will make it easier to debug. Also, you may want to use the console for running the debugger, and just let the program run in another console with the X server.” Eric Mouw had another solution: “An old terminal connected to an otherwise unused serial port is also great for debugging X programs.