Code::Blocks Forums

User forums => Help => Topic started by: Richard on November 03, 2018, 08:33:42 am

Title: Debugger does not stop on breakpoint after start
Post by: Richard on November 03, 2018, 08:33:42 am
Hello everyone,

I would ask for help with problem with debugger in C::B.
I've got a project, it compiles and run without problem - on screensot n.2.

But when I hit the red arrow, to run the debugger, what I see is on the third screenshot -
debugger starts, but does not go to any line (the yellow pointer is completely missing)
and program does not run.

When I now hit the "next line" button, debugger ends - thats on screenshot n.4.

I am able to run the debugger succesfully by placing the cursor on some line,
click the "Run to cursor", place the cursor on the line again and
click the "Run to cursor" again. Thats on the screenshot n.5.

But I would be grateful if the program would jump on the start of main() function
after starting the debugger by clicking the "Debug" button.
Shouldn't it be so?

I am using C::B on 64b Win 10, installed from codeblocks-17.12mingw-setup.exe.
Debugger is gdb32.exe, stripping symbols from executable is not enabled,
optimization is not enabled.

Thanks for any help!
R. B.

PS: This site has crazy restrictions on attachments!
Title: Re: Debugger does not stop on breakpoint after start
Post by: oBFusCATed on November 03, 2018, 01:02:25 pm
Have you read the debugging wiki page http://wiki.codeblocks.org/index.php/Debugging_with_Code::Blocks ?
Do you have symbols?
Can you post the full debugger's log (goto the debugger settings to enable it)?

p.s. do not post small screen shots they are not really readable. You can right click in the log and do copy to clipboard.