SCREEN GOES BLANK WITH DEBUGOFF BUT NOT WITH DEBUGON
Posted: Mon Aug 08, 2016 3:07 am
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).
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).