Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
Locked
0

Read logs XCode when developing a iOS ANE

Explorer ,
Jun 16, 2015 Jun 16, 2015

Hi,

I'm developing an iOS library with XCode 6.2 and Intellij for Air Code.

I can debug easily with Intellij, but I'd like to read iOS logs written with NSLog. Stop on breakpoints would be even better.

Right now I'm connecting XCode with Debug -> Attach To Proccess, and seems to work, but it does not stop on breakpoints nor reads logs.

In Android was easy, Catlog app worked just fine. iOS does not seem to have something similar.

Any ideas?

thanks!

TOPICS
Development
745
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Engaged , Jun 18, 2015 Jun 18, 2015

Here's my device window:

Screenshot 2015-06-18 11.26.36.png

If the console pane isn't shown at the bottom, click the arrow in the bottom right to show it.  I believe it's collapsed by default, I had troubles finding it when I first used Xcode.

Translate
Engaged ,
Jun 17, 2015 Jun 17, 2015

You can't see the device logs when you plug your device in and select "Devices" (cmd + shift + 2)?

I build apps with Flash Builder 4.7, and the NSLogs from my ANEs show up in XCode when I do that (of course, I can also see all the logs from every other process).

However, how to get XCode to debug/do breakpoints if you're not building/launching the app from XCode.....  I have no idea if that's possible.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jun 18, 2015 Jun 18, 2015

Xcode 6.2, click on my device -> view device logs  only show Crash logs. Should I do something more or just launch the app should be enough?

About debugging / breakpoints, first I stop the AS3 application with a breakpoint, then go to Xcode and Debug -> attach to process and restart the app from IDE.

Thanks again!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Jun 18, 2015 Jun 18, 2015

Here's my device window:

Screenshot 2015-06-18 11.26.36.png

If the console pane isn't shown at the bottom, click the arrow in the bottom right to show it.  I believe it's collapsed by default, I had troubles finding it when I first used Xcode.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jun 18, 2015 Jun 18, 2015

Thanks! you've saved my day ^^

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Jun 19, 2015 Jun 19, 2015
LATEST

Glad to be of service .  I also learned something about Xcode debugging, so thank you as well!

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines