|
|
Home » U++ TheIDE » U++ TheIDE: Compiling, Linking, Debugging of your packages » IDE debugger hangs on GuiMT example
IDE debugger hangs on GuiMT example [message #36115] |
Sun, 29 April 2012 18:56  |
awksed
Messages: 68 Registered: April 2012
|
Member |
|
|
Hi,
The IDE debugger hangs when debugging the reference/GuiMT example.
To reproduce, place a breakpoint at:
void Divisors::TestNumber()
{
if(IsNull(editor)) // Breakpoint here
return;
Hit F5, enter a number and click 'Test'.
The mouse pointer moves but nothing responds to lbutton down etc., nothing on the desktop works, i.e. menu, app icons, widjets etc. Ctrl+Alt+Del puts up the Log Off/Shutdown dialog but the buttons do not work (times out to log off after 30 seconds which is the only way out).
Other example apps debug ok (I wish to develop a similar MT app so need to resolve this).
Mandriva 2012.2, KDE 4.4 desktop. gdb 7.1-1mdv2010.1.
Thanks,
Jan
|
|
|
Re: IDE debugger hangs on GuiMT example [message #36116 is a reply to message #36115] |
Sun, 29 April 2012 20:02   |
mdelfede
Messages: 1308 Registered: September 2007
|
Ultimate Contributor |
|
|
Confirming.... I had same problem on my app.
A workaround is to play with keyboard :
ALT-D (opens debugger menu) and then navigate with arrows and select 'stop debugging'.
Not a solution, but I'll try to investigate that one....
Max
p.s.: just tested with my MI2 interface, don't know what happens with the default one....
p.p.s: same stuff with default GDB interface.
[Updated on: Sun, 29 April 2012 20:04] Report message to a moderator
|
|
|
|
|
|
|
Re: IDE debugger hangs on GuiMT example [message #36127 is a reply to message #36126] |
Tue, 01 May 2012 12:29   |
mdelfede
Messages: 1308 Registered: September 2007
|
Ultimate Contributor |
|
|
awksed wrote on Tue, 01 May 2012 12:24 | > BTW, as you are here, I'll be glad if you test my GDB extensions (Setup-Environment-IDE and select GDB_MI2) and give some feedback.
Sure, but I dont have a debugger selection option on Setup-Environment-IDE. I built version 4179 from source 2 day ago and the updater reports "Can't find file uppsrc/ide/version.h" (it is in ~/upp/uppsrc/ide/).
Regards,
Jan
|
That's quite weird, because the option is there since about 3 monthes.... did you update the sources from svn ?
Anyways, if you do so, please use latest svn (yesterday one at most...), as I fixed many stuffs on last 2 days.
If you build from sources, I guess the updater from ide becomes useless, you should do it with svn+build from sources or at least downloading manually from nighty builds. I suggest you the svn way.
Ciao
Max
p.s.: about the x11 hang problem... I had it yesterday again, but the keyboard trick was working. Maybe you should try combining it with alt-tab to switch windows.
[Updated on: Tue, 01 May 2012 12:31] Report message to a moderator
|
|
|
|
|
|
|
|
Re: IDE debugger hangs on GuiMT example [message #36148 is a reply to message #36147] |
Fri, 04 May 2012 12:51   |
mdelfede
Messages: 1308 Registered: September 2007
|
Ultimate Contributor |
|
|
awksed wrote on Fri, 04 May 2012 09:47 | Hi Max,
Re: debugger. GDB_M12 is an improvement on the 'Stable' debugger. However it crashes the IDE (no core dump) on a breakpoint in a worker thread with an 'Invalid memory access!' messagbox (then terminates). Sorry I can't let you have the source that shows this, it contains proprietry code.
|
well, if you can make a small testcase that crashes the debugger, I'll be glad to fix it... I need to reproduce to find the bug.
Quote: |
Drill down is nice but it would be more intuitive to use a control with a + indicating expansion available.....
|
Indeed. I'll look for it, if it's possible to add.
Quote: |
It would be nice to have more buttons ('Stop' would be useful and 2 minutes to add). 'Pause' or the ability to add checkpoints while running would greatly enhance things (Eclipse manages the latter, try cribbing their code ).
|
Well... the button are easy, ok... I can add them.
About the checkpoints/breakpoints added on running debugger, that's another matter, gdb is quite picky on asynchronous mode
and I've got already problems (not all solved) about.
Anyways, you can now stop app with "asynchronous break", set your breakpoints and restart again. Beware, it still has some problems with MT apps.
Quote: |
The 'Stable' debugger has a bug. Select reference/ColumnList. Put breakpoint in TestWind::Layout. When BP hit, click 'Autos' tab. 'Attempt to use type name in expression' is displayed briefly and execution continues.
|
well, the "stable" version is now updated and will be replaced by the MI2 one as default; I plan to do bugfixes just on latter.
Thank you for feedback !
Max
|
|
|
|
|
|
|
|
|
|
Goto Forum:
Current Time: Fri May 09 22:21:14 CEST 2025
Total time taken to generate the page: 0.01297 seconds
|
|
|