Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

I try to debug my GTK+ application with gdb, but it hangs my X server when I hit some breakpoint. Any Idea?

0
Posted

I try to debug my GTK+ application with gdb, but it hangs my X server when I hit some breakpoint. Any Idea?

0

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.

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.