XCode console lag/unreliable

I’m really scratching my head on this one: I sometimes manage to see the Debug.Log() messages that I send from script, inside of XCode’s organizer, console tab… but then again, sometimes I don’t see any of them!

Maybe some XCode guru can explain to me how it works exactly? are the messages supposed to come out in realtime? should I wait for the app to close? Every time I stop the app, I notice my iPhone updating or something (spinning wheel in the top left corner, to the right of the Wifi antenna icon), why is that? console synching? (seems like a long shot…)

Also, the console seems to be reset every time I quit XCode… is it inside the device, or is XCode’s debugger picking up the messages and storing them in a log in my Mac? ie can I access this log from the regular OSX console?

EDIT: also, does stripping debug symbols in Unity change anything? log messages should still appear, right?
EDIT 2: does changing the active configuration from Release to Debug change anything?

Bump… really, no one?
I find it extremely hard to debug, right now I have zero visibility once the game is inside the phone…

Hi-

did you try the debug console (in gdb not the console in the iPhone organizer).
That one seems to work for me.

-markus

Thank you dear frightening goat sir!

gdb… uh, now who’s this bad boy… is that the one?
I got a gdb folder in /Developer (thanks Spotlight), with a terminal app (thanks yuck), and no clue what to do with… is that the one you’re talking about?

Is there a frontend to this? Sorry, complete Unix noob here! :lol:

Basically, yes that’s the one.
Fortunately it’s integrated into XCode. I doN’t have access to XCode right now, but there should be a menu entry and a icon somewhere that says somethig like “Run > Console”.
You probably have to start your app in debug mode from within XCode to see any output.

-markus

kusako, you the man! Or goat. Whatever floats your boat.
Too bad this view is complete flooded by stats… very hard to sort out my babies from this mess!

… and BTW, no need to switch to Debug, log messages show up in Release too.

You can change
#define ENABLE_INTERNAL_PROFILER 1
to
#define ENABLE_INTERNAL_PROFILER 0

in AppController.mm this disables unity’s profiler output.

Oh, and it’s a ram, not a goat :slight_smile:

-markus

Awesome! Where did you find all this info??

Problem is, this file gets replaced every time you rebuild from Unity… is there any way to avoid this, and keep some files across builds? This would also be useful for the icon, and probably others.