Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ TheIDE » U++ TheIDE: Compiling, Linking, Debugging of your packages » Debugger freezes (Whole GUI freezes and I have to kill debug-session in CLI)
Debugger freezes [message #46714] Sun, 17 July 2016 13:19 Go to next message
slashupp is currently offline  slashupp
Messages: 193
Registered: July 2009
Experienced Member
Linux

I'm trying to debug within a Paint() routine: the Debugger stops on the breakpoint
and then everything stops/freezes.

I have to Ctrk-Alt-F2 into a CLI-session to kill the debugged app.

I found the messages about _DBG_Ungrab() but cannot access it - not defined in any header,
nor does declaring it 'extern' work.

Any advice?
Re: Debugger freezes [message #46715 is a reply to message #46714] Sun, 17 July 2016 13:55 Go to previous messageGo to next message
slashupp is currently offline  slashupp
Messages: 193
Registered: July 2009
Experienced Member
I've drilled deeper and found

gdk_pointer_ungrab(CurrentTime); in Ctrl::PanicMsgBox()

I then did:
#include <gdk/gdk.h>
and in my Paint()-routine added gdk_pointer_ungrab(CurrentTime); just before the breakpoint position.

This works and I can now debug.

Is this the right way of doing it?
Re: Debugger freezes [message #46766 is a reply to message #46715] Sun, 31 July 2016 13:39 Go to previous message
mirek is currently offline  mirek
Messages: 12105
Registered: November 2005
Ultimate Member
Seriously, in X11, debugging is sometimes unreliable risky bussines. More that often, to debug GUI, it is better to use DLOGs, especially in Paint.

Mirek
Previous Topic: Compiling error
Next Topic: <build_info.h> can't be included in .rc file
Goto Forum:
  


Current Time: Tue Nov 19 13:50:59 CET 2019

Total time taken to generate the page: 0.01333 seconds