Re: Can't Debug "conditionally included" source files
Re: Can't Debug "conditionally included" source files
- Subject: Re: Can't Debug "conditionally included" source files
- From: Jim Ingham <email@hidden>
- Date: Wed, 12 May 2004 09:28:41 -0700
Lance,
I bet you don't have syntax hilighting because .src is not a file
extension that Xcode recognizes.
The debugger is going to be a little hampered because it also doesn't
know the source language of a .src file, but we default to "C" which
ought to be good enough for most things. Can you set a breakpoint on
the included file? I.e. does this work (in the console window):
(gdb) break specialfile.src:28
where line 28 is where the doSomethingSpecial method is defined?
It would be interesting to know if just stepping is broken, or if we
aren't finding the source->address mapping for the #included file at
all.
In any case, please do file a bug about step in not working, and if you
can give us a test case that shows the behavior that will make it much
easier to figure out what is going on.
Jim
On May 12, 2004, at 12:12 AM, Lance Drake wrote:
Hi XCode people,
Is this something that needs to be written up as a bug - or is
there some explanation and workaround?
If a source file - part of the project and compiled - has an entry
such as this:
#ifdef __INCLUDE_SPECIAL_FILE__
#include "specialfile.src"
#endif
and also - in the header for that object...
#ifdef __INCLUDE_SPECIAL_FILE__
#include "specialfile.h"
#endif
where "specialfile.src" is also part of the project - and is assigned
to the target being built - and is indicated in the info panel as
'sourcecode'. Included in that file might be code such as:
- (void) doSomethingSpecial
{
// special something done here
}
Tthere then is a call in a compiled file such as:
#ifdef __INCLUDE_SPECIAL_FILE__
[self doSomethingSpecial];
#endif
The code cannot be stepped thru with the debugger; it appears with no
syntax highlighting and yet it IS executed.
Any thoughts on how better to accomplish the same thing? ...and,
should this definition be submitted to BugReporter - or is it simply
an expected behavior?
Thanks,
Lance Drake
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.
--
Jim Ingham email@hidden
Developer Tools
Apple Computer
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.