Author Topic: Debugger does not stop on breakpoint after start  (Read 3434 times)

Richard

  • Guest
Debugger does not stop on breakpoint after start
« 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!

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Debugger does not stop on breakpoint after start
« Reply #1 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.
« Last Edit: November 03, 2018, 01:05:14 pm by oBFusCATed »
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]