• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Can't Debug "conditionally included" source files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: Can't Debug "conditionally included" source files
      • From: Jim Ingham <email@hidden>
  • Prev by Date: Re: converting makefile to XCode project
  • Next by Date: Remote execution
  • Previous by thread: viewing whitespace?
  • Next by thread: Re: Can't Debug "conditionally included" source files
  • Index(es):
    • Date
    • Thread