Jump to content


Photo

Where's the debug window in HTML5: Run game in de


  • Please log in to reply
8 replies to this topic

#1 epilobello

epilobello

    GMC Member

  • New Member
  • 162 posts

Posted 27 October 2011 - 11:53 PM

My estimate was that it would take me less than two hours in Windows. Quite frankly, if my project were in Windows and not intended for HTML, I'd be done by now. Wouldn't you know it, there are some very simple things in Windows that don't work in HTML5. As soon as I figure out if they have not been reported before, then I'll post the bug.

I just installed the latest update to GM HTML5 yesterday. (1.0.145 r6892)
  • 0

#2 Gamer_Dude64

Gamer_Dude64

    GM Html5 Programmer

  • GMC Member
  • 167 posts
  • Version:GM:Studio

Posted 28 October 2011 - 12:17 AM

the debug window is below the game... its the multi line textbox thing, for other debugging, use the one built in the browser.
  • 0

#3 epilobello

epilobello

    GMC Member

  • New Member
  • 162 posts

Posted 28 October 2011 - 12:19 AM

Aha! Running GM HTML5 in debug does not obfuscate jscript. That's nice. All I really needed was to display a track a variable.
  • 0

#4 Gamer_Dude64

Gamer_Dude64

    GM Html5 Programmer

  • GMC Member
  • 167 posts
  • Version:GM:Studio

Posted 28 October 2011 - 12:27 AM

you could just use the draw_text function and draw it in your game so you can see what it is throughout your game.
  • 0

#5 epilobello

epilobello

    GMC Member

  • New Member
  • 162 posts

Posted 28 October 2011 - 12:52 AM

you could just use the draw_text function and draw it in your game so you can see what it is throughout your game.

Exactly. So I get it that the debug window is nowhere to be found in GM HTML5? Oh well!

Edited by epilobello, 28 October 2011 - 12:54 AM.

  • 0

#6 Gamer_Dude64

Gamer_Dude64

    GM Html5 Programmer

  • GMC Member
  • 167 posts
  • Version:GM:Studio

Posted 28 October 2011 - 01:35 AM

press f9 during debug mode-(red arrow...in case you didn't know..) all there is is the textbox below the game and the browser's debugger.

Edited by Gamer_Dude64, 28 October 2011 - 01:47 AM.

  • 0

#7 epilobello

epilobello

    GMC Member

  • New Member
  • 162 posts

Posted 28 October 2011 - 05:18 AM

press f9 during debug mode-(red arrow...in case you didn't know..) all there is is the textbox below the game and the browser's debugger.


I'm looking for the Debug Information like in Windows. The CompileForm in GM HTML5 and the F12 Developer Tools in IE just won't cut it.

Restart, Pause, Single Step, watching expressions, etc. are basic functions of what I would consider a good debugger.
  • 0

#8 rwkay

rwkay

    YoYo Games CTO

  • YoYo Games Staff
  • 1415 posts
  • Version:Unknown

Posted 28 October 2011 - 08:42 AM

Most browsers have built in debuggers (IE9 and Chrome) where you can set breakpoints and watch variables - the debug (red arrow) run will not obfuscate the code so you can see what is happening (the original GML code is in the comments above the compiled functions).

On Firefox you can install Firebug which has similar functionality to the IE9 and Chrome debuggers, though not quite as good.

Not used Opera much myself but it may well have a debugger (Mike says Yes and then No, then Yes... so check).

Because the browsers have most of this functionality built in we decided that duplicating it was not a great idea just now (time better spent elsewhere).

If you still have issues then let us know.

Russell
  • 0

#9 epilobello

epilobello

    GMC Member

  • New Member
  • 162 posts

Posted 28 October 2011 - 06:12 PM

Because the browsers have most of this functionality built in we decided that duplicating it was not a great idea just now (time better spent elsewhere).

If you still have issues then let us know.

Russell


Now that we know the lay of the land, I'd be happy to learn IE9s debug features. Forward and onward!
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users