Show Line Numbers in Xcode

Asif Ahmed

I started using Crashlytics to capture my crashes today and it seems like it is one of the best crash / exception capturing SDKs out there for iOS. The installation process is really nifty and it gives you a lot of feedback during this process to show you whether you are installing the SDK correctly. The best feature of Crashlytics however, it that it tells you what line number in which file the exception/error/crash occurs. However, during the default install of Xcode, it doesn’t display line numbers in your coding file. So, how do we show line numbers in Xcode?

Go to preferences, and then click on the “Text Editing” tab. Check the box next to show “Line numbers” like in the image below.

Screen Shot 2014-09-17 at 12.10.34 PM

Now you should be able to see line numbers in Xcode!


  • EngHell

    Thanks :), i don’t know why most of IDEs come with line numbers hidden by default, its kinda ummm, lets call it dummy