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 ignore breakpoint in headerfile
icon4.gif  Debugger ignore breakpoint in headerfile [message #4216] Fri, 28 July 2006 21:48 Go to next message
ren42 is currently offline  ren42
Messages: 12
Registered: July 2006
Promising Member
Hello altogether,
first i want say, you did a wonderful work. I'm very impressed
about all those features UPP have. Smile

So I get confused that the debugger ignored breakpoints
in headerfiles. The reason is: I enclosed my headers,
except for the STL, in doubleqoutes e.g.:
#include "hyperclass.hpp" <--- Breakpoints will be ignored
Now i find the workaround:
#include <mainPackage/hyperclass.hpp> <--- Now it works Smile
But i think it's not a bug, it's a feature, so i can organize
my code better Smile
BTW, please tell me, how can i make the debugger stop, if an
error occur? The option "Stop on Error" is aktivated.

Many thanks in advance Smile
Re: Debugger ignore breakpoint in headerfile [message #4223 is a reply to message #4216] Sat, 29 July 2006 00:28 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
You give quite a little info.. Which compiler, what platform?

In fact, there are now two debuggers in TheIDE

- debugger for Microsoft compiler. That one is much more advanced and much more code is in TheIDE itself - it just uses dbghelp.dll library to get symbolic info from the executable, does rest in our code

- debugger for GCC (mingw) - just GUI frontend to GDB (unfortunately).

Both are limited by tools they use. dbghelp.dll sometimes does not return correct symbol info (and then yet again, sometimes it is not well interpreted by us), gdb has even more problems...

Mirek
Re: Debugger ignore breakpoint in headerfile [message #4232 is a reply to message #4216] Sat, 29 July 2006 13:03 Go to previous messageGo to next message
ren42 is currently offline  ren42
Messages: 12
Registered: July 2006
Promising Member
Hi Mirek,
thanks for your quick response Smile
Quote:


You give quite a little info.. Which compiler, what platform?


I'm sorry to forget to tell that Rolling Eyes

Well, I'm using gcc 3.4.1 and W2000 with the latest servicepack.
And UPP605 with gcc included. Because I migrated my project from
codeblocks i used first gcc included in codeblock and later the
gcc included in UPP. Both compiler behave the same way. I don't
have the M$ compiler, but i will try to use it. I hope this can
help you Smile

Thomas
Re: Debugger ignore breakpoint in headerfile [message #4240 is a reply to message #4232] Sat, 29 July 2006 18:49 Go to previous messageGo to next message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Then, unfortunately, the problem is very likely inside gdb....

The only thing we can do is to test whether we are supplying the correct info to GDB. In "Verbose mode" TheIDE will log all comunications it does with GDB....

Mirek
Re: Debugger ignore breakpoint in headerfile [message #4247 is a reply to message #4216] Sat, 29 July 2006 23:44 Go to previous messageGo to next message
ren42 is currently offline  ren42
Messages: 12
Registered: July 2006
Promising Member
Hi Mirek,
i think the gdb isn't as perfect at all. In codeblock the gdb
ignores breakpoints in constructors and destructors... For this
cases i use a dummy function placed in the ctors or dtors, set a
breakpoint in the dummy function and voila. Stoneage methods but
it works Very Happy The gdb isn't really a reason to stop using UPP Smile

Many thanks,
Thomas
Re: Debugger ignore breakpoint in headerfile [message #4248 is a reply to message #4247] Sun, 30 July 2006 00:40 Go to previous message
mirek is currently offline  mirek
Messages: 13975
Registered: November 2005
Ultimate Member
Well, maybe some day in distant future somebody will have enough time to undestand the library that provides the symbolic information for GDB and create better GCC debugger for U++...

Mirek
Previous Topic: including cpp-files
Next Topic: umk on linux
Goto Forum:
  


Current Time: Tue Apr 30 23:13:58 CEST 2024

Total time taken to generate the page: 0.03264 seconds