DEBUG ¡n iphone

Previous topic - Next topic

ampos

If in my code I put a "debug text", can it be seen somewhere, if the programs runs on an iphone?
check my web and/or my blog :D
http://diniplay.blogspot.com (devblog)
http://www.ampostata.org
http://ampostata.blogspot.com
I own PC-Win, MacBook 13", iPhone 3G/3GS/4G and iPAC-WinCE

matchy

This is what I use:
Code (glbasic) Select

FUNCTION debug_out: in$
LOCAL out$

out$="[APP] "+MID$(PLATFORMINFO$("TIME"),11,8) + ": "+ in$+"\n"
?IFDEF IPHONE
STDOUT out$
?ELSE
DEBUG out$
?ENDIF
ENDFUNCTION

Kitty Hello

If you want to use stdout on windows, you can insert:
Code (glbasic) Select

IMPORT void __AllocConsole()
__AllocConsole()

trucidare

Somewhere in my code archiv is a project called iphonebug, it uses a simple button in your game and on press it show you all these values you set with DEBUG_IPHONE.
MacBook Pro 2,2 GHz Core 2 Duo, 4 GB RAM, 160 GB HDD, 8600M GT
Core i3 - 3,07 GHz, 8 GB Ram, 2.5 TB HDD, Geforce GTX 260+ OC

ampos

I though that iphone sent text to the XCode debug window...
check my web and/or my blog :D
http://diniplay.blogspot.com (devblog)
http://www.ampostata.org
http://ampostata.blogspot.com
I own PC-Win, MacBook 13", iPhone 3G/3GS/4G and iPAC-WinCE

trucidare

it does, but not all users could work with it
MacBook Pro 2,2 GHz Core 2 Duo, 4 GB RAM, 160 GB HDD, 8600M GT
Core i3 - 3,07 GHz, 8 GB Ram, 2.5 TB HDD, Geforce GTX 260+ OC