GLBasic forum

Main forum => GLBasic - en => Topic started by: ampos on 2010-Nov-16

Title: DEBUG ¡n iphone
Post by: ampos on 2010-Nov-16
If in my code I put a "debug text", can it be seen somewhere, if the programs runs on an iphone?
Title: Re: DEBUG ¡n iphone
Post by: matchy on 2010-Nov-16
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
Title: Re: DEBUG ¡n iphone
Post by: Kitty Hello on 2010-Nov-16
If you want to use stdout on windows, you can insert:
Code: (glbasic) [Select]
IMPORT void __AllocConsole()
__AllocConsole()
Title: Re: DEBUG ¡n iphone
Post by: trucidare on 2010-Nov-16
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.
Title: Re: DEBUG ¡n iphone
Post by: ampos on 2010-Nov-16
I though that iphone sent text to the XCode debug window...
Title: Re: DEBUG ¡n iphone
Post by: trucidare on 2010-Nov-16
it does, but not all users could work with it