Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Debugger won't stop at breakpoints
Debugger won't stop at breakpoints [message #990993] Sun, 16 December 2012 14:01 Go to next message
Stormey legend is currently offline Stormey legendFriend
Messages: 8
Registered: December 2012
Junior Member
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 15:14 Go to previous messageGo to next message
David Wegener is currently offline David WegenerFriend
Messages: 1441
Registered: July 2009
Senior Member
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 20:33 Go to previous messageGo to next message
Stormey legend is currently offline Stormey legendFriend
Messages: 8
Registered: December 2012
Junior Member
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 20:33]

Report message to a moderator

Re: Debugger won't stop at breakpoints [message #991620 is a reply to message #991221] Wed, 19 December 2012 21:40 Go to previous messageGo to next message
Stormey legend is currently offline Stormey legendFriend
Messages: 8
Registered: December 2012
Junior Member
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 22:55 Go to previous messageGo to next message
Russell Bateman is currently offline Russell BatemanFriend
Messages: 3798
Registered: July 2009
Location: Provo, Utah, USA
Senior Member

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] Thu, 20 December 2012 04:37 Go to previous messageGo to next message
Stormey legend is currently offline Stormey legendFriend
Messages: 8
Registered: December 2012
Junior Member
Will do. Thanks!
Re: Debugger won't stop at breakpoints [message #991946 is a reply to message #991736] Thu, 20 December 2012 14:22 Go to previous messageGo to next message
Marc Khouzam is currently offline Marc KhouzamFriend
Messages: 357
Registered: July 2009
Senior Member
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 18:16 Go to previous message
Stormey legend is currently offline Stormey legendFriend
Messages: 8
Registered: December 2012
Junior Member
brilliant!

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

[Updated on: Thu, 20 December 2012 18:17]

Report message to a moderator

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


Current Time: Mon Apr 19 23:01:33 GMT 2021

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

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

Back to the top