Breakpoints? [message #61288] |
Thu, 06 February 2003 06:57  |
Eclipse User |
|
|
|
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 #61719 is a reply to message #61599] |
Fri, 07 February 2003 16:27  |
Eclipse User |
|
|
|
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-)
|
|
|
Powered by
FUDForum. Page generated in 0.04993 seconds