Author Topic: DEBUG ¡n iphone  (Read 1553 times)

Offline ampos

  • Prof. Inline
  • *****
  • Posts: 1600
    • View Profile
    • AMpostata Website
DEBUG ¡n iphone
« 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?
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

Offline matchy

  • Prof. Inline
  • *****
  • Posts: 1545
    • View Profile
Re: DEBUG ¡n iphone
« Reply #1 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

Offline Kitty Hello

  • code monkey
  • Administrator
  • Prof. Inline
  • *******
  • Posts: 10757
  • here on my island the sea says 'hello'
    • View Profile
    • http://www.glbasic.com
Re: DEBUG ¡n iphone
« Reply #2 on: 2010-Nov-16 »
If you want to use stdout on windows, you can insert:
Code: (glbasic) [Select]
IMPORT void __AllocConsole()
__AllocConsole()

Offline trucidare

  • Administrator
  • Prof. Inline
  • *******
  • Posts: 1377
  • Bachelor of Fail
    • View Profile
Re: DEBUG ¡n iphone
« Reply #3 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.
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

Offline ampos

  • Prof. Inline
  • *****
  • Posts: 1600
    • View Profile
    • AMpostata Website
Re: DEBUG ¡n iphone
« Reply #4 on: 2010-Nov-16 »
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

Offline trucidare

  • Administrator
  • Prof. Inline
  • *******
  • Posts: 1377
  • Bachelor of Fail
    • View Profile
Re: DEBUG ¡n iphone
« Reply #5 on: 2010-Nov-16 »
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