User forums > Using Code::Blocks
Very Simple Debugger Issue
solarwind:
Hey all, I'm using Code::Blocks on winbloze and I have a simple debugger issue.
My program is as follows:
When I set the breakpoint and hit debug, Code::Blocks ignores it and continues execution until the end. It just jumps past the breakpoint... Is this supposed to happen?
killerbot:
make sure you build with debug settings on : project options : -g
and don't have the debug symbols stripped.
solarwind:
It IS building with -g:
--- Code: ----------------- Build: Debug in Derek_Engine ---------------
mingw32-g++.exe -Wall -fexceptions -g -march=i686 -O3 -g -c "C:\Documents and Settings\Administrator\My Documents\CppWorkspace\Derek_Engine\main.cpp" -o obj\Debug\main.o
mingw32-g++.exe -o bin\Debug\Derek_Engine.exe obj\Debug\main.o
Output size is 585.07 KB
Process terminated with status 0 (0 minutes, 1 seconds)
0 errors, 0 warnings
--- End code ---
Pecan:
Are you debugging in Constructors and Destructors?
See warning and example at the end of:
http://wiki.codeblocks.org/index.php?title=Debugging_with_Code::Blocks
solarwind:
No, it's just a single man.cpp helloworld file.... Looks exactly as it is in the screenshot.
Navigation
[0] Message Index
[#] Next page
Go to full version