Amitg2k12
Amitg2k12

Reputation: 3805

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

Upvotes: 1

Views: 458

Answers (3)

Rob Keniger
Rob Keniger

Reputation: 46020

You could replace calls to NSLog() with calls to your own function that writes the output to a location that you specify, and optionally also calls NSLog() to dump the output to the console.

Upvotes: 0

LaC
LaC

Reputation: 12824

NSLog output goes to stdout, which goes to Console for applications launched from the Finder. In other words, look in Console.app.

Upvotes: 1

lbrndnr
lbrndnr

Reputation: 3389

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

Upvotes: 1

Related Questions