Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » CDT » Can't set breakpoints
Can't set breakpoints [message #849154] Wed, 18 April 2012 19:30 Go to next message
Paul DeRocco is currently offline Paul DeRocco
Messages: 8
Registered: April 2012
Junior Member
OS: Ubuntu Oneiric 32-bit
Eclipse: Indigo 3.7.2
Package: Eclipse IDE for C/C++ Linux Developers

I'm debugging a simple C++ command line program. It compiles fine. When I hit the Debug button, it highlights the first line of main(). I can single-step with F5/F6. I can inspect data. But I cannot set breakpoints. Double-clicking in the left margin does bupkis.

The Run menu contains a Breakpoint Types item, which opens a submenu that simply says None Available.

I redownloaded the Eclipse package. No change. There are no other add-ons or plug-ins that didn't come with the package. There is nothing funny about my project configuration, which is about as simple as it can be.

What do I do now?
Re: Can't set breakpoints [message #849790 is a reply to message #849154] Thu, 19 April 2012 09:02 Go to previous messageGo to next message
Marc Khouzam is currently offline Marc Khouzam
Messages: 219
Registered: July 2009
Senior Member
> The Run menu contains a Breakpoint Types item, which opens a submenu that simply says None Available.

That is a problem.
Are tracepoints available as a type of breakpoint after you enable them?
Here is how to enable them, look at the part: "Enable the C/C++ Tracepoint functionality"

http://wiki.eclipse.org/CDT/User/FAQ#How_can_I_trace_my_application_using_C.2FC.2B.2B_Tracepoints.3F

Marc
Re: Can't set breakpoints [message #850584 is a reply to message #849790] Fri, 20 April 2012 02:41 Go to previous message
Paul DeRocco is currently offline Paul DeRocco
Messages: 8
Registered: April 2012
Junior Member
They weren't available. However, I nuked the project and recreated it, and now breakpoints work. I half wish I know what went wrong, but it's the sort of thing that only happens once when you're a newbie, so I won't bother trying to recreate the problem.
Previous Topic:Managed Make calls linker before all modules have been compiled
Next Topic:Editing C Files Programatically
Goto Forum:
  


Current Time: Tue May 21 13:03:48 EDT 2013

Powered by FUDForum. Page generated in 0.02291 seconds