• 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
Re: Line-number references wrong by several lines
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Line-number references wrong by several lines


  • Subject: Re: Line-number references wrong by several lines
  • From: Jerry Krinock <email@hidden>
  • Date: Tue, 26 Feb 2008 10:05:17 -0800

On 2008 Jan, 30, at 20:45, Fritz Anderson wrote:

In the debugger, off-by-lines errors occur when a source file has inconsistent line endings (\n for some lines, \r\n for others, maybe \r for others still) from being exposed to editors on more than one platform. The errors you see may have the same cause.

Try opening an Info window on a problem file and explicitly setting the line endings. (I believe this will work with inconsistent files.) See if that corrects the off-by-lines problems.

Of course, this doesn't happen every day, so it took me a few weeks to confirm this soltuion. But yes, if I


1.  Right click on problem file in Groups & Files
2.  Click "Get Info"
3.  Set the Line Endings to "Unix..."
4.  Dirty the file.
5.  Save the file.

then the off-by-lines problem is fixed for that file.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: Symbolizing Crash Dump with atos. How does it get the .dSYM?
  • Next by Date: Re: determine CPU type at runtime
  • Previous by thread: Re: Line-number references wrong by several lines
  • Next by thread: Fwd: [ADMIN] Monthly Reminder: How to Ask for Help on Xcode-users
  • Index(es):
    • Date
    • Thread