Developer forums (C::B DEVELOPMENT STRICTLY!) > Contributions to C::B

How to use Debugger?

(1/2) > >>

Schmidti:
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

Pecan:
Make sure your project is compiled with the -g compiler option.



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.



MortenMacFly:

--- Quote from: Pecan on October 25, 2006, 03:33:58 pm ---Make sure your project is compiled with the -g compiler option. [...]

--- End quote ---
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 under "Application development". Something like "Debugging with Code::Blocks" or so...

Pecan:

--- Quote from: MortenMacFly on October 25, 2006, 04:10:49 pm ---
--- Quote from: Pecan on October 25, 2006, 03:33:58 pm ---Make sure your project is compiled with the -g compiler option. [...]

--- End quote ---
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 under "Application development". Something like "Debugging with Code::Blocks" or so...

--- End quote ---

Acknowledge. Will begin work on it today.

Schmidti:
Thanks, it works 8)

Navigation

[0] Message Index

[#] Next page

Go to full version