Skip to main content



      Home
Home » Newcomers » Newcomers » Debugger won't stop at breakpoints
Debugger won't stop at breakpoints [message #990993] Sun, 16 December 2012 09:01 Go to next message
Eclipse UserFriend
Hi guys.
im new here and to C programming in general.

im trying to make the program run until a specified breakpoint, and then start debugging.
i set a breakpoint (by clicking on the left panel and marking the line with a blue dot), hit debug, and the debugger starts debugging from the first line, instead of running the program and stopping at the breakpoint.

how can i make it run the program and start debugging at a specific line?
im using:
Eclipse IDE for C/C++ Developers

Version: Juno Service Release 1
Build id: 20120920-0800


Thanks in advanced!
Re: Debugger won't stop at breakpoints [message #991159 is a reply to message #990993] Mon, 17 December 2012 10:14 Go to previous messageGo to next message
Eclipse UserFriend
On 12/16/2012 02:00 PM, Stormey legend wrote:
> Hi guys.
> im new here and to C programming in general.
>
> im trying to make the program run until a specified breakpoint, and then
> start debugging.
> i set a breakpoint (by clicking on the left panel and marking the line
> with a blue dot), hit debug, and the debugger starts debugging from the
> first line, instead of running the program and stopping at the breakpoint.
>
> how can i make it run the program and start debugging at a specific line?
> im using:
> Eclipse IDE for C/C++ Developers
>
> Version: Juno Service Release 1
> Build id: 20120920-0800
>
> Thanks in advanced!
Do you have Stop on Startup at: Main checked in your Debug launch config
on the Debugger page? This will cause your program to stop at main.
You can hit resume and the program will continue till it hits a
breakpoint. You can also uncheck the Stop on Startup option in the
launch config. Then your program will run until a breakpoint is hit.
Re: Debugger won't stop at breakpoints [message #991221 is a reply to message #990993] Mon, 17 December 2012 15:33 Go to previous messageGo to next message
Eclipse UserFriend
Hi David Wegener, and thanks for your help.

i couldn't find any box with "Stop on Startup at: Main" next to it.

i'm not allowed to use links to any other site but eclipse.org because i have fewer than 5 messages, so i can't post a picture of my Debugger Configuration window,
and i'm too affraid to change staff without knowing exactly what it does,
so i'll be really grateful if you could walk me through it...
there are six tabs there:
main
arguments
environment
debugger
source
common

none of them has "Stop on Startup at: Main" option.

although there's unchecked "Non-stop mode (Note: requires non-stop GDB)" option under the "Deubgger" tab.

what should i do next?

[Updated on: Mon, 17 December 2012 15:33] by Moderator

Re: Debugger won't stop at breakpoints [message #991620 is a reply to message #991221] Wed, 19 December 2012 16:40 Go to previous messageGo to next message
Eclipse UserFriend
UP!

Please! this is really important to me.
doesn't anyone know how to fix this problem?

TIA!
Re: Debugger won't stop at breakpoints [message #991647 is a reply to message #991620] Wed, 19 December 2012 17:55 Go to previous messageGo to next message
Eclipse UserFriend
On 12/19/2012 2:40 PM, Stormey legend wrote:
> UP!
>
> Please! this is really important to me.
> doesn't anyone know how to fix this problem?
>
> TIA!

Of course, you're asking in the newcomers' forum. As you're doing C/C++,
your touble might be flavored that way. So, you could re-ask in the
Eclipse CDT forum just in case there's more of a C/CC++ thing going on.

Just flailing around trying to salve your desperation.

Best of luck!
Re: Debugger won't stop at breakpoints [message #991736 is a reply to message #991647] Wed, 19 December 2012 23:37 Go to previous messageGo to next message
Eclipse UserFriend
Will do. Thanks!
Re: Debugger won't stop at breakpoints [message #991946 is a reply to message #991736] Thu, 20 December 2012 09:22 Go to previous messageGo to next message
Eclipse UserFriend
The original answer was correct. Just added an entry with screenshots to the FAQ to make it easier to understand:
http://wiki.eclipse.org/CDT/User/FAQ#How_do_I_prevent_the_debugger_from_stopping_on_the_first_line.3F

Marc
Re: Debugger won't stop at breakpoints [message #992033 is a reply to message #991946] Thu, 20 December 2012 13:16 Go to previous message
Eclipse UserFriend
brilliant!

thank you so much!
it's crazy how i missed it...

[Updated on: Thu, 20 December 2012 13:17] by Moderator

Previous Topic:p2 installation question
Next Topic:How to extend "Switch Workspace" in custom CNF-navigator
Goto Forum:
  


Current Time: Mon Jul 28 15:45:57 EDT 2025

Powered by FUDForum. Page generated in 0.31284 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top