diference in console output ?

Monkey Forums/Monkey Beginners/diference in console output ?

navyRod(Posted 2014) [#1]
When running below example as desktop app, exceptions print in the console
window, but when running as a html5 app, the exception prints don't show up in console window.

Any idea why?

example:
Class Ex1 Extends Throwable
End
Class Ex2 Extends Throwable
End

Function Main()
For Local i:=1 To 10
Try
If (i & 1) Throw New Ex1 Else Throw New Ex2
Catch ex:Ex1
Print "Caught an ex1!"
Catch ex:Ex2
Print "Caught an ex2!"
End
Next
End


Midimaster(Posted 2014) [#2]
The html5 PRINTs are displayed in the browser window below the HTML5 canvas.


MikeHart(Posted 2014) [#3]
The content in the console window is the result of the running app creating an output to the STDOUT or STDERR pipe and TED displaying that.
A running HTML5 app inside the browser does not support this and so prints to the browser window.


Gerry Quinn(Posted 2014) [#4]
If your HTML app fills most of the screen, you might miss the printout-window, which is below it. Scroll down or set the view to < 100% size.


Supertino(Posted 2014) [#5]
as Gerry says if your app fills the browser window pull the white bar at the bottom up, by default this should shrink the app canvas and expose the console.


navyRod(Posted 2014) [#6]
thanks for info