Can't Debug "conditionally included" source files
Can't Debug "conditionally included" source files
- Subject: Can't Debug "conditionally included" source files
- From: Lance Drake <email@hidden>
- Date: Wed, 12 May 2004 01:12:03 -0600
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.