Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

NSLog not working when "wait for executable to be launched" is set

Tags:

ios

debugging

I am just exploring debugging as per the subject line. I am noting that while this works easily enough, the NSLog's are not outputting, but breaks do get hit. This is not helping ;) .. I don't see any obvious options in the edit scheme window.

This is to test pushes, but firstly i am just manually firing up the app to ensure the process works (with waiting for the app to manually start etc)..

Thanks for any tips..

like image 572
drew.. Avatar asked Sep 20 '14 15:09

drew..


2 Answers

If you let the process start normally, then the logs will be hooked up to ASL already. The debugger doesn't have a good way to reroute this connection after the fact. You will have to look in the Device Console for the logs. In Xcode 6, select Windows->Devices, then there's a little disclosure widget at the bottom of the content window that will reveal the Device console.

like image 114
Jim Ingham Avatar answered Oct 31 '22 14:10

Jim Ingham


Use breakpoints to log whatever You want

Right click on breakpoint -> Edit Breakpoint

enter image description here

  • Check "Automatically continue after evaluating options" to make sure app won't stop at break
  • Add Action(s) to log info You need

enter image description here

like image 34
Paulius Vindzigelskis Avatar answered Oct 31 '22 15:10

Paulius Vindzigelskis