Search code examples
cocoamacosnslog

Capturing NSLog in release mode



My Application, running fine in Release and debug mode as well, if i run thru XCode, but if i double click on Application, then its crashing at the same place, but i couldn’t able to proceeds, Is there any way to Capture the NSLog if i am running my application outside XCode environment, or any other pointer to analyze the crash.

Kind Regards
Rohan


Solution

  • GDB, the apple debugger.

    Just start the terminal and type in:

    gdb -q path-to-your-application
    

    When it has loaded press r in order to start your application.

    Hope that helps