Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Contributions to C::B => Topic started by: Schmidti on October 25, 2006, 07:42:20 am

Title: How to use Debugger?
Post by: Schmidti on October 25, 2006, 07:42:20 am
Hi...

how can i use the debugger? I want to watch variables, while i step manual through single lines of code...
Is this possible with Code:Blocks?

greetings
Title: Re: How to use Debugger?
Post by: Pecan on October 25, 2006, 03:33:58 pm
Make sure your project is compiled with the -g compiler option.

(http://img100.imageshack.us/img100/1975/graphic1025200692525amnc7.png)

Start the debugger, open the watches window from the debugger menu, set your breakpoints with a right click in the left margin of the target line, right click on the variable to watch.

(http://img55.imageshack.us/img55/9844/graphic1025200692353amrt7.png)

Title: Re: How to use Debugger?
Post by: MortenMacFly on October 25, 2006, 04:10:49 pm
Make sure your project is compiled with the -g compiler option. [...]
Pecan, do you mind adding this to the WiKi? It has been asked soooo many times - so we could just point to that page then instead of repeating ourselves again and again...
With regards, Morten.

Edit: I vote placing the (initial) article here: http://wiki.codeblocks.org/index.php?title=User_documentation (http://wiki.codeblocks.org/index.php?title=User_documentation) under "Application development". Something like "Debugging with Code::Blocks" or so...
Title: Re: How to use Debugger?
Post by: Pecan on October 25, 2006, 04:27:43 pm
Make sure your project is compiled with the -g compiler option. [...]
Pecan, do you mind adding this to the WiKi? It has been asked soooo many times - so we could just point to that page then instead of repeating ourselves again and again...
With regards, Morten.

Edit: I vote placing the (initial) article here: http://wiki.codeblocks.org/index.php?title=User_documentation (http://wiki.codeblocks.org/index.php?title=User_documentation) under "Application development". Something like "Debugging with Code::Blocks" or so...

Acknowledge. Will begin work on it today.
Title: Re: How to use Debugger?
Post by: Schmidti on October 25, 2006, 06:24:29 pm
Thanks, it works 8)
Title: Re: How to use Debugger?
Post by: Pecan on October 26, 2006, 02:58:51 am
Wiki debugger instructions:


http://wiki.codeblocks.org/index.php?title=Debugging_with_Code::Blocks
 (http://wiki.codeblocks.org/index.php?title=Debugging_with_Code::Blocks)
Title: Re: How to use Debugger?
Post by: MortenMacFly on October 26, 2006, 08:26:15 am
Wiki debugger instructions:

http://wiki.codeblocks.org/index.php?title=Debugging_with_Code::Blocks
 (http://wiki.codeblocks.org/index.php?title=Debugging_with_Code::Blocks)
Nice! :D Thanks a lot! 8) I've added this link to my sig... immediately. ;-)
With regards, Morten.
Title: Re: How to use Debugger?
Post by: Schmidti on October 28, 2006, 10:39:14 am
Oh, i have still two questions?

- Is it possible to number the Array in the Watches-Menu? Cause if you have a array with over 1000 data, its still impossible to see whats in the array[723].
- How can i watch a 2 dimemsion (or higher) Array? If i add it to the "Watches" its still only in one dimension!

Title: Re: How to use Debugger?
Post by: superbem on January 18, 2013, 12:19:07 am
I builded sucessfully CB from svn today (8792) and see that the automatic inclusion of local variables and function arguments have not being reimplemented yet.
This is  :(
A healthy debugger is imprescendible.
When do you think it will be working?

Another thing not related, my build show svn 0 instead 8792. Wonder why?

Regards
Title: Re: How to use Debugger?
Post by: Jenna on January 18, 2013, 12:38:45 am
Please do not hijack a more than 6 years old thread !

Topic locked !