-->
Page 1 of 2

SCREEN GOES BLANK WITH DEBUGOFF BUT NOT WITH DEBUGON

PostPosted: Mon Aug 08, 2016 3:07 am
by raintime
I have not installed the snazzy editor. I have turned on the development tool in Chrome.

1. When I hit [RUN] it gives an “Uncaught SyntaxError: Unexpected token <” at file?file=codemirror.j..gz line 1. That line reads

<meta name="viewport" content="width=device-width, initial-scale=1.0"></script><script src='WebSockets.js'></script>

There seems to be an extra closing "</script>" in this line (the first one).

2. It gives an “Uncaught ReferenceError: CodeMirror is not defined at line 123 of edit?name=/AAA.bas&open=Open. (AAA.bas is my basic program file)

The line reads: var editor = CodeMirror.fromTextArea(document.getElementById("code"), {

3. My file has a debugoff statement. An exception is detected on line 166 of WebSockets.js, where the comment is “//Create text boxes for variables” on line 166: Cannot read property ‘appendChild of null”. Since the debugger is off, I don't think these text boxes are operational.

The line reads:
document.getElementById("fooBar").appendChild(element);

4. Continuing, it stops at another exception at line 8 of WebSockets.js,

“Cannot set property ‘value of null’”. The line (in function start (websocketServerLocation) reads:

document.getElementById("connection_status").value = "Connected";

I think connection_status is a textbox associated with the debugger, but I have the debugger off, so connection_status is not on the screen.

5. So far, the screen showed my program as expected. But when it gets to line 192 in function AddToBody(str) in WebSockets.js, it gets a "ReferenceError: res is not defined."

Lines 191 and 192 read:
document.open();
document.write(bla + res[1]);

And then the screen goes blank and stays blank. When I change my code from “debugoff” to “debugon”, the screen does not go blank at this point, but screen obejcts in my program do not operate properly (eg, my textbox does not populate).

Re: SCREEN GOES BLANK WITH DEBUGOFF BUT NOT WITH DEBUGON

PostPosted: Mon Aug 08, 2016 3:26 am
by Mmiscool
What version number are you on.
There was a bug earlier today. If you are on ESP Basic 3.0.Alpha 29 it should be all good.

Give that a whirl and let me know if you still have the problem.

Re: SCREEN GOES BLANK WITH DEBUGOFF BUT NOT WITH DEBUGON

PostPosted: Mon Aug 08, 2016 6:09 am
by Mmiscool
Sorry. I spoke too soon. There were 2 conditions that would cause this. Both have been corected now. I just uploaded a new build about 5 minuets agoe.

Gi e it a shot. Should fix your problem.

Re: SCREEN GOES BLANK WITH DEBUGOFF BUT NOT WITH DEBUGON

PostPosted: Mon Aug 08, 2016 8:08 am
by raintime
Thanks Mike!

I have been using 3.0 Alpha 25. I'll give the latest build a whirl as soon as I get a chance. My schedule puts me more or less under water for the next 4 days, with a straw going up above the water for breathing...

I can't resist pleading with you to attack the LOAD command... I so much want to be able to bring up other screens/programs at the push of a button on the current screen!