Code::Blocks Forums

User forums => Help => Topic started by: stew79 on June 24, 2012, 12:46:08 pm

Title: I cant get code blocks to stop on break points
Post by: stew79 on June 24, 2012, 12:46:08 pm
Can some one pls help me
I did have code blocks stopping on breakpoints before but now, for some reason it just ignores them.
I have searched google and this forum and did the things they suggested ---

I am currently doing an sdl project and it is set correctly and running. In my project build options I have produce debugging symbols [-g] selected.
But when I insert a couple of breakpoints and re-build it then go to start debugging my project runs and completes ok, but I am unable to stop it at a breakpoint. Also the debugging window says no debugging symbols found
It also wont run to cursor either
Can some one pls help me
Title: Re: I cant get code blocks to stop on break points
Post by: oBFusCATed on June 24, 2012, 01:31:11 pm
Remove the stripping option (-s).
See here for details: http://wiki.codeblocks.org/index.php?title=Debugging_with_Code::Blocks
Title: Re: I cant get code blocks to stop on break points
Post by: stew79 on June 24, 2012, 01:40:58 pm
Sorry I forgot to mention that the strip option [-s] isn't selected. Also I am running codeblocks 10.05 on windows 7 and I am using the GNU GCC Compiler ::)
Title: Re: I cant get code blocks to stop on break points
Post by: oBFusCATed on June 24, 2012, 01:52:59 pm
Please enable the full build log of the compiler and verify that the options are correct!

http://wiki.codeblocks.org/index.php?title=FAQ-Compiling_%28errors%29#Q:_How_do_I_troubleshoot_a_compiler_problem.3F
Title: Re: I cant get code blocks to stop on break points
Post by: stew79 on June 24, 2012, 02:04:46 pm
 ;D ;D ;D ;D ;D Sorry I have just fixed it  ;D ;D ;D ;D ;D
It seems that selecting project options from the menu bar is different from right clicking on your project and then navigating to build options that way. Because that is the way I selected those options but when I went through the menu bar and selected / project / build options  I had the strip option  and the optimize option selected.
My question now is why are those options not selected when I navigate to build options through right clicking on the project and navigating through properties to build options  ???
Title: Re: I cant get code blocks to stop on break points
Post by: oBFusCATed on June 24, 2012, 02:08:05 pm
You're wrong, the dialog/options are the same.
There is a tree on the left side of the dialog and you can select if you want to edit the target options or the project options.

Read the manual for details on the UI.
Title: Re: I cant get code blocks to stop on break points
Post by: stew79 on June 24, 2012, 02:22:18 pm
oops  ;D I see
Thank you for your help and sorry for wasting your time    ;)