Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
397 views
in Technique[技术] by (71.8m points)

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

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..

question from:https://stackoverflow.com/questions/25950525/nslog-not-working-when-wait-for-executable-to-be-launched-is-set

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...