Rocky
Rocky

Reputation: 289

Xcode - Looking at logs in debug mode? (iOS)

Let's say you run your application from your Xcode. When it's running from your Xcode, you can see the logs in the debugger. Once you stop the application and run the app again from your device by tapping it, you won't be able to see the logs in the debugger although the application is running in debug mode.

Is there any way to enable logging in the debugger though you are not running the app from Xcode (but the app is compiled in debug mode)?

If not, how do debug symbols (debug mode will add debug symbols to the binaries) help us to debug our application? I can only see the benefit when I symbolicate crash logs.

Upvotes: 0

Views: 1994

Answers (2)

Khanh Nguyen
Khanh Nguyen

Reputation: 11134

There's a useful utility called iPhone Configuration Utility

Upvotes: 0

rmaddy
rmaddy

Reputation: 318804

Use the Xcode Organizer window. Select the Devices tab. Then choose the connected device and select Console under the device. You will see more than just your app's logs messages but they will be there.

Upvotes: 0

Related Questions