Debug output doesn't work with 4.0 SDK
Ever since I upgraded to the iOS 4.0 SDK, calls like Titanium.API.info and Titanium.API.debug no longer print to the Titanium debug window. Nothing…
If I however open the XCode project and run from within XCode, these calls to correctly print to the XCode debug window…
Is this a known issue? Is there a workaround? It's taking me a lot of extra time because I always have to run in Titanium to compile, quit the simulator, open the xcode project and run from there to see any debug output…
7 Answers
-
Michael, did you ever find an answer to this? I've also been having to debug through XCode since my debug and info calls do not show up in Titanium Developer.
-
I am having this problem as well, any help from the Appcelerator team would be awesome.
-
I had this problem with one of my projects after a storm shut down my computer. Turns out some files went bad so I created a new project in TiDev and copied over the Resources folder. Two minutes later I was back to programming :)
-
Same problem here. No Titanium.API.debug shows up on the console
-
Well, after unsuccessfully looking for a solution I stumbled by coincidence over a solution here:
http://developer.appcelerator.com/blog/2010/07/introducing-titanium-mobile-1-4.html
That solved the logging issue for me -
Not sure if the same problem, But found if I started the emulator with Eclipse that the Titanium.API.debug and Titanium.API.info will not log via the Titanium Console.
But you can see the Logging in Eclipse via DDMS on the LogCat Tab.
I hope it helps as it took me a while to find!!
-
For whatever reason, the app-generated console commands do not show in
Run
mode. However, by accident I found that they work just fine if you run inDebug
. I don't know what changed with Studio, but it annoys the hell outta me.Moral: Run your app in the debugger - no need to set breakpoints, just run it. your Ti.API.whatever comments will magically appear.