• 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
[SOLVED]: Can't Debug "conditionally included" source files
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[SOLVED]: Can't Debug "conditionally included" source files


  • Subject: [SOLVED]: Can't Debug "conditionally included" source files
  • From: Lance Drake <email@hidden>
  • Date: Wed, 12 May 2004 12:13:47 -0600

I bet you don't have syntax hilighting because .src is not a file extension that Xcode recognizes.

Hi Jim,

Alright! You are correct - changing the filename to match the including source allowed for syntax highlighting to emerge.

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?

Now that the source filename name is changed, breakpoint commands, such as the above, work perfectly.


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.

Stepping works! - vars are displayed and correct - the only thing that is not completely consistent with the behavior of normally-included source is the ability to set a breakpoint by clicking in the margin - something I find to be a totally reasonable situation.


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.

There is/was no bug (only my misbehavior) - THANK YOU! - and please know that you folks get my vote for XCode as the best development environment, ever.


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.


References: 
 >Can't Debug "conditionally included" source files (From: Lance Drake <email@hidden>)
 >Re: Can't Debug "conditionally included" source files (From: Jim Ingham <email@hidden>)

  • Prev by Date: NSMatrix & NSTextCell <-- Interface Builder
  • Next by Date: Fwd: Creating Carbon bevel picture buttons w/Interface Builder
  • Previous by thread: Re: Can't Debug "conditionally included" source files
  • Next by thread: Remote execution
  • Index(es):
    • Date
    • Thread