Code::Blocks Forums

User forums => Help => Topic started by: ninio_arg on January 04, 2014, 09:03:09 am

Title: C::B doesn't stop at breakpoints
Post by: ninio_arg on January 04, 2014, 09:03:09 am
I know, I know. This is not a news. I've read the posts about this issue on this forum, but I couldn't fix it.

I'm on Slackware 14.1 and I've compiled CB 12.11 from the sources. I'm trying a simple C++ Hello Wold-like program just to check this problem.
I read this http://wiki.codeblocks.org/index.php?title=Debugging_with_Code::Blocks and everything is fine (-g option, etc).
I don't have any space at the project path or at the C::B path.
When I run
Code
gdb executable
from a terminal, it says that symbols were loaded. So, -g is working.

I don't know what to do :S
Title: Re: C::B doesn't stop at breakpoints
Post by: oBFusCATed on January 04, 2014, 11:29:13 am
Enable and post the full log from the debugger.
Does in terminal gdb stop at breakpoints?
Title: Re: C::B doesn't stop at breakpoints
Post by: ninio_arg on January 05, 2014, 12:38:10 am
Does in terminal gdb stop at breakpoints?
Yes, it does.

Enable and post the full log from the debugger.
How can I do it?.
Title: Re: C::B doesn't stop at breakpoints
Post by: oBFusCATed on January 05, 2014, 01:02:00 am
Settings -> Debugger -> Common -> Full log...

Then right click -> copy to clipboard
Title: Re: C::B doesn't stop at breakpoints
Post by: ninio_arg on January 05, 2014, 01:09:41 am
Sorry, but I don't know what or where is the output. The "Debugger" tab in "Log & others" is empty. :S
Title: Re: C::B doesn't stop at breakpoints
Post by: ollydbg on January 05, 2014, 03:02:20 am
The "Debugger" tab in "Log & others" is empty. :S
It will have texts when your start the debugging.
Title: Re: C::B doesn't stop at breakpoints
Post by: ninio_arg on January 05, 2014, 03:10:40 am
The "Debugger" tab in "Log & others" is empty. :S
It will have texts when your start the debugging.
That's the problem. It hasn't. Even when the program stops waiting for an input.
Title: Re: C::B doesn't stop at breakpoints
Post by: ollydbg on January 05, 2014, 03:31:41 am
It will have texts when your start the debugging.
That's the problem. It hasn't. Even when the program stops waiting for an input.
Strange, please tell us the exact steps you did. Thanks.
Title: Re: C::B doesn't stop at breakpoints
Post by: ninio_arg on January 05, 2014, 07:45:40 am
I open my project (.cbp). The build target is "Debug". I click on Build (or Rebuild). After checking the tab "Build messages" and see everything is fine, I put my breakpoints and I click on "Run".
Breakpoints aren't read, and if the program stops at some user input, the "Debugger" tab is empty. Indeed, it's empty all the time.
Title: Re: C::B doesn't stop at breakpoints
Post by: ollydbg on January 05, 2014, 07:59:25 am
I open my project (.cbp). The build target is "Debug". I click on Build (or Rebuild). After checking the tab "Build messages" and see everything is fine, I put my breakpoints and I click on "Run".
Breakpoints aren't read, and if the program stops at some user input, the "Debugger" tab is empty. Indeed, it's empty all the time.
Note, you should click the "Debug/Continue" button, not "Run" button to start debugging.
Title: [Solved] Re: C::B doesn't stop at breakpoints
Post by: ninio_arg on January 05, 2014, 08:06:52 am
I open my project (.cbp). The build target is "Debug". I click on Build (or Rebuild). After checking the tab "Build messages" and see everything is fine, I put my breakpoints and I click on "Run".
Breakpoints aren't read, and if the program stops at some user input, the "Debugger" tab is empty. Indeed, it's empty all the time.
Note, you should click the "Debug/Continue" button, not "Run" button to start debugging.
OMG!!. What a shame!!. Yes sir, that's all!. Just use Start / Continue (F8), and not Run (F9).

Thank you so much!.
Title: Re: C::B doesn't stop at breakpoints
Post by: oBFusCATed on January 05, 2014, 08:45:01 am
 ;D ::) :P