User forums > Using Code::Blocks

Tutorial on the debugger

<< < (2/2)

Game_Ender:

--- Quote from: thomas on December 31, 2005, 11:17:06 pm ---3. Set breakpoints by clicking on the side bar, you will see red dots. Breakpoints inside constructors are not yet supported, except for that, you can do just what you want -- even breakpoints in plugin dlls and system headers work fine.

--- End quote ---

There is way to set a break point for a constructor, maybe this should be implemented as a work around if Code::Blocks can figure out that break point is being set in a constructor.  In the GDB command line you can tell it to break on a destructor call by typing "break wxGLCanvas::wxGLCanvas()" for example.  The full constructor signature is needed.  This will drop you into the constructor and you can work from there.  I have done this on Ubuntu 5.10.

mandrav:

--- Quote from: Game_Ender on January 06, 2006, 06:17:54 am ---There is way to set a break point for a constructor, maybe this should be implemented as a work around if Code::Blocks can figure out that break point is being set in a constructor.  In the GDB command line you can tell it to break on a destructor call by typing "break wxGLCanvas::wxGLCanvas()" for example.  The full constructor signature is needed.  This will drop you into the constructor and you can work from there.  I have done this on Ubuntu 5.10.

--- End quote ---

Yes, I know. Actually it was implemented in the previous debugger plugin incarnation but I haven't implemented it in the current plugin.
It will be back though :)

Navigation

[0] Message Index

[*] Previous page

Go to full version