Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » Breakpoints?
Breakpoints? [message #61288] Thu, 06 February 2003 06:57 Go to next message
Eclipse UserFriend
Originally posted by: Alex.Burr.broadcom.com

This is probably a stupid question, but I can't get breakpoints
to work under linux. No matter what I do, the breakpoint menu items
and icons remain greyed out, except 'run to c/c++ line' which doesn't do
anything, even if I have selected a line first. I can get it to single step
or run. I'm using:

eclipse-SDK-2.0.2-linux-motif
org.eclipse.cdt-linux-motif_1.0.1
gdb/5.2.1/i686-2.4.7-10

Any ideas?

Thanks,

Alex
Re: Breakpoints? [message #61407 is a reply to message #61288] Thu, 06 February 2003 15:59 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: alain.no.spam

Alex Burr wrote:

> This is probably a stupid question, but I can't get breakpoints
> to work under linux. No matter what I do, the breakpoint menu items
> and icons remain greyed out, except 'run to c/c++ line' which doesn't do
> anything, even if I have selected a line first. I can get it to single step
> or run. I'm using:

> eclipse-SDK-2.0.2-linux-motif
> org.eclipse.cdt-linux-motif_1.0.1
> gdb/5.2.1/i686-2.4.7-10

> Any ideas?

Did you compile your application with debug ?

Makefile:

all: hello

hello: hello.c
gcc -g -o hello hello.c

clean:
$(RM) hello
> Thanks,

> Alex
Re: Breakpoints? [message #61524 is a reply to message #61407] Fri, 07 February 2003 06:11 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Alex.Burr.broadcom.com

alain wrote:

> Alex Burr wrote:

> > This is probably a stupid question, but I can\'t get breakpoints
> > to work under linux. No matter what I do, the breakpoint menu items
> > and icons remain greyed out, except \'run to c/c++ line\' which doesn\'t do
> > anything, even if I have selected a line first. I can get it to single step
> > or run. I\'m using:

> > Any ideas?

> Did you compile your application with debug ?

Yes. I\'m looking at various debuggers - I don\'t have any difficulty
setting breakpoints in it using standalone gdb, insight, ddd, ups, etc.
I didn\'t actually compile it using eclipse - should that make a
difference?

Alex
Re: Breakpoints? [message #61542 is a reply to message #61524] Fri, 07 February 2003 06:45 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Alex.Burr.broadcom.com

Alex Burr wrote:


> Yes. I\\\'m looking at various debuggers - I don\\\'t have any difficulty
> setting breakpoints in it using standalone gdb, insight, ddd, ups, etc.
> I didn\\\'t actually compile it using eclipse - should that make a
> difference?

Hmm. If I get eclipse to compile Hello World, I can get it to \'run to
line\'
but still not set breakpoints otherwise.

Alex
Re: Breakpoints? [message #61599 is a reply to message #61542] Fri, 07 February 2003 09:07 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Alex.Burr.broadcom.com

Alex Burr wrote:

> Hmm. If I get eclipse to compile Hello World, I can get it to \'run to
> line\'
> but still not set breakpoints otherwise.

Ok, I can in fact get a project built by eclipse to set breakpoints.
It doesn't believe that one I imported was built with
debugging turned on, for some reason. Even If I get it to rebuild.

Alex
Re: Breakpoints? [message #61719 is a reply to message #61599] Fri, 07 February 2003 16:27 Go to previous message
Eclipse UserFriend
Originally posted by: alain.no.spam

Alex Burr wrote:

> Alex Burr wrote:

> > Hmm. If I get eclipse to compile Hello World, I can get it to \'run to
> > line\'
> > but still not set breakpoints otherwise.

> Ok, I can in fact get a project built by eclipse to set breakpoints.
> It doesn't believe that one I imported was built with
> debugging turned on, for some reason. Even If I get it to rebuild.

Yes, the source *must* exist within your workspace, to be
able to set breakpoint in the CEditor, breakpoints are set
on the IFile for persistency. If the sources are not
in the workspace, the debugger will provide an IStorage
to the editor(read-only buffer).
There are other things you can do like setting the source
locator to indicate to the debugger where to find the files,
A property in the Debug view on the "GDB Debugger".

Or use the "Gdb console" to access gdb directly click
on the terminal in the toolbar of the debug view:
b main.c:2


Yes, we are looking to document all this 8-)
Previous Topic:Installation with cdt problem using win98
Next Topic:faq sample hello world problem
Goto Forum:
  


Current Time: Thu May 08 17:07:45 EDT 2025

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

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

Back to the top