'Error("!")' in debug mode freezes browser.

Monkey Forums/Monkey Programming/'Error("!")' in debug mode freezes browser.

Alex(Posted 2013) [#1]
I faced this problem over all the period I use monkey, since about v45.
I think I'm not the one who is bothered by this.

So, the problem is.
When I try to stop the app during runtime by using Error("<something>") the command isn't working. Debug mode is on.
It just freezes my both browsers (Chrome and Safari), the iOS version freezes as well.

The biggest thing is sometimes this bug disappears, sometimes it appears again.

By the way, other debug windows that show line numbers Error was generate on, does not appear too.

If this is a noob question, please still give it an answer, so others would find this topic in the future.
I tried to search any keyword I could. But I found nothing.

This topic contains any keyword I searched. Hopefully :)


MikeHart(Posted 2013) [#2]
What do you expect it to do? Error stops the execution of the app.


skid(Posted 2013) [#3]
What do you mean by other debug windows, as in other monkey apps?

The simplest test is to run a new html5 build of the following program:

Function Main()
	Error("!")
End


This works fine for me in Chrome and shows the error in a debug textbox below the game canvas of the page.


therevills(Posted 2013) [#4]
shows the error in a debug textbox

Does it show if you run in release mode? I raised a bug a few weeks ago, for some reason on my PC I only see the error text in debug mode...


Alex(Posted 2013) [#5]
Thanks guys!

I earlier updated from 66 to 69, so maybe missed when the debug messages went to the text area.
I hided that textbox months ago in a MonkeyGame.html file. =)

When I moved to v69 I copied my MonkeyGame.html file in new build folder because I used some <br> and <center> tags. So that's how this textbox hiding appeared in my project and I didn't see any debug messages.

Now everything's okay.