Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » CanŽt debug application with sources in subdirs
CanŽt debug application with sources in subdirs [message #166110] Mon, 20 March 2006 05:04 Go to next message
Eclipse UserFriend
Originally posted by: stather.external.onespin-solutions.com

IŽve written this already in teh "newcomer" group but now I think this
belongs more in here.
I want to debug a project where the source files are in subdirectories of
the project folder. Nothing uncommon IMHO but when I set a breakpoint in
one of those files when I want to debug I get a red message in the console
"no file xxxxx.c" where xxxx is the filename. The breakpoints arenŽt
executed. AFAIK the debugging information contains absolute paths, so I do
ÂŽt understand what goes wrong here.
Could anybody help me?
Thanks in advance :)
Re: Can [message #166166 is a reply to message #166110] Mon, 20 March 2006 14:24 Go to previous messageGo to next message
Eclipse UserFriend
Michael,

> belongs more in here.

I take that it is a C/C++ project, and then it is definitely the right place
here.

> I want to debug a project where the source files are in subdirectories of
> the project folder. Nothing uncommon IMHO but when I set a breakpoint in

Hmmm did it before and it worked.

> one of those files when I want to debug I get a red message in the console
> "no file xxxxx.c" where xxxx is the filename. The breakpoints aren
Re: CanŽt debug application with sources in subdirs [message #166212 is a reply to message #166166] Tue, 21 March 2006 04:20 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: stather.external.onespin-solutions.com

This is the code for dxx-rebirth from www.dxx-rebirth.de.
In the base dir there are no source files, however for example in the "2d"
subdir there are source and header files. Each of these subdirs is build
as a static library, and theyŽre all linked together to produce the output
binary.
I set a breakpoint e.g. in "main/inferno.c".
IŽm using eclipse on SuSE Linux 10.0.
Thanks in advance for your help, and IŽll gladly give more details if
needed.
Re: CanŽt debug application with sources in subdirs [message #166605 is a reply to message #166212] Mon, 27 March 2006 03:18 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: stather.external.onespin-solutions.com

Can nobody help me here?
Re: CanŽt debug application with sources in subdirs [message #166832 is a reply to message #166605] Thu, 30 March 2006 05:15 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: arne.anka.ginguppin.de

sure your breakbpoints ever got hit?
i have subfolders (and get the message regarding non-existing source-file
as well), but my breakpoints usually get hit.
they don't if the code in question is called via corba, but that's normal.
- did you check whether your folders are known to the debugger?
- check "stop at main" in the debugger-page of the launcher and try to
step into your code.
Re: CanÅœt debug application with sources in sub dirs [message #167074 is a reply to message #166832] Fri, 31 March 2006 06:08 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: stather.external.onespin-solutions.com

Why do these message appear at all? Do I have to change settings when I
have subdirs to "make them recognized" by eclipse or does eclipse
recognize them automatically (it should IMHO when there are sources in the
subdirs).
Re: CanÅœt debug application with sources in sub dirs [message #167122 is a reply to message #167074] Fri, 31 March 2006 09:17 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: arne.anka.ginguppin.de

> Why do these message appear at all?

dunno. never been gdb nor eclipse.

> Do I have to change settings when I have subdirs to "make them
> recognized" by eclipse or does eclipse recognize them automatically (it
> should IMHO when there are sources in the subdirs).

have a look at your launcher's "source"-tab -- are your folders there?
Re: CanÅœt debug application with sources in sub dirs [message #167200 is a reply to message #167122] Sun, 02 April 2006 13:35 Go to previous messageGo to next message
Eclipse UserFriend
arne anka wrote:

>> Why do these message appear at all?
>
> dunno. never been gdb nor eclipse.
>
>> Do I have to change settings when I have subdirs to "make them
>> recognized" by eclipse or does eclipse recognize them automatically (it
>> should IMHO when there are sources in the subdirs).
>
> have a look at your launcher's "source"-tab -- are your folders there?
Yes, they are there

Do you know whether this message is generated by eclipse or by GDB?
Re: CanÅœt debug application with sources in sub dirs [message #167238 is a reply to message #167200] Mon, 03 April 2006 08:47 Go to previous message
Eclipse UserFriend
Originally posted by: arne.anka.ginguppin.de

> Do you know whether this message is generated by eclipse or by GDB?

gdb -- but based on informations given by eclipse.
Previous Topic:CDT Solaris XP?
Next Topic:CDT CVS integration with managed makefiles
Goto Forum:
  


Current Time: Mon May 12 19:35:56 EDT 2025

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

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

Back to the top