Simple question - How can at the very least see my traces on the device? Is it possible?
I’ve searched the forums and found a couple of posts about it but nothing that actually works. [import]uid: 10332 topic_id: 4443 reply_id: 304443[/import]
Simple question - How can at the very least see my traces on the device? Is it possible?
I’ve searched the forums and found a couple of posts about it but nothing that actually works. [import]uid: 10332 topic_id: 4443 reply_id: 304443[/import]
I asked the same question here: http://developer.anscamobile.com/code/corona-async-http
Adding [lua]io.output():setvbuf(“no”)[/lua] to the top of your main.lua file will print debug to XCode console when the phone is ATTACHED. Tested on iPhone not sure about Android. [import]uid: 11393 topic_id: 4443 reply_id: 13960[/import]
Well, I must be doing something wrong or perhaps this method does not work for 3G phones. [import]uid: 10332 topic_id: 4443 reply_id: 14110[/import]
I’m on the same boat. I wasn’t able to get anything to print on the console, though I was able to take screenshots from the app inside Xcode so at least I know it was running. The whole Xcode thing is very alien to me. [import]uid: 10835 topic_id: 4443 reply_id: 14119[/import]
I’m running an iPhone 3GS (mid-2009 model) and not getting any output either. Anyone know a way round this?
matt [import]uid: 8271 topic_id: 4443 reply_id: 22904[/import]
Under Settings->Development, you have to enable logging. My device wasn’t doing it either until I stumbled across that setting. Hope that helps. Also, your device’s iOS version must be the same version as the iOS SDK on the computer. [import]uid: 8782 topic_id: 4443 reply_id: 23057[/import]
Thanks.
I think there should be docs for that…
M [import]uid: 8271 topic_id: 4443 reply_id: 23148[/import]
Now I’ve had a chance to look, where is the “Settings -> Development” menu you mention? I can’t find it in XCode, Corona or the iPad…?
m [import]uid: 8271 topic_id: 4443 reply_id: 23157[/import]
I believe that this is what I’m looking for, but it would be needed on my iPhone 3GS and iPad:
http://stackoverflow.com/questions/3170747/what-is-developer-in-the-settings-app
However, it has been some time (at least since the previous version of iOS) that I first added my devices for development.
Does anyone know of a way of getting this option now?
Thanks,
Matt. [import]uid: 8271 topic_id: 4443 reply_id: 23171[/import]
Right, well, my iPad is now outputting to the XCode console. Don’t actually know what I did to get it to do that. Will have to check the iPhone later… [import]uid: 8271 topic_id: 4443 reply_id: 23221[/import]
The XCode device connection can be quirky. Another thing to try is restarting XCode (with the device plugged in). [import]uid: 6787 topic_id: 4443 reply_id: 27866[/import]
There’s a “mad scientist” way to do print() type debugging on the device that’s really easy.
See this blog post and video:
http://gamedevnation.com/video/using-print-from-a-device-kinda/
Jay
PS - tested on iOS only as I don’t have an Android device yet.
[import]uid: 9440 topic_id: 4443 reply_id: 28004[/import]