thx for your help.
if i set a breakpoint and click on run debugger, the console window opens but very fast and closes very fast, is this normal?, if yes why do i need breakpoints?
how can i read the content of a variable?, well i click on edit watches and enter i (my variable int i), so then i click on debugging windows, but i can't see the content of my variable
thx, blut-lecker
Ok first the breakpoints thing. You did compile with debug symbols on right? One other possibility is that it (your code) doesn't "use" the line you put the breakpoint on.
Try this:
int main()
{
int test;
test = 1;
return 0;
}
Now put breakpoints on all of the (code) lines (int test, test = 1, return 0). The debugger should "hit" your breakpoint. Also there is this really cool feature that you really should turn on. If you hover over an expression Code::Blocks will show the contents of it. Turn it on here: Settings -> Compiler and debugger -> Debugger -> (can't remember exactly lol) -> Evaluate expression under cursor.
EDIT:
By defualt Code::Blocks show the values of local variables, and function arguments to your local function. :)
Also you can right click on a variable, and tell Code::Blocks to watch it. :)
Make sure you aren't using RC2. There have been some really great improvements to the debugger in the recent nightly builds. :)