@@ -11964,6 +11964,8 @@ if (database == "_" && J2S._serverUrl.indexOf("//your.server.here/") >= 0) {
11964
11964
}
11965
11965
}
11966
11966
11967
+ J2S.getClassList = function(){J2S._saveFile('_j2sclasslist.txt', Clazz.ClassFilesLoaded.sort().join('\n'))}
11968
+
11967
11969
// J2S._localFileSaveFunction -- // do something local here; Maybe try the
11968
11970
// FileSave interface? return true if successful
11969
11971
@@ -13490,6 +13492,15 @@ if (ev.keyCode == 9 && ev.target["data-focuscomponent"]) {
13490
13492
return c;
13491
13493
}
13492
13494
13495
+ var __j2sDebugCode = function() {
13496
+ if (!document.getElementById("j2sprofile")) {
13497
+ $('body').append(`<div id=j2sprofile><a href='javascript:J2S.getProfile()'>start/stop profiling</a> <a href="javascript:J2S.getClassList()">get _j2sClassList.txt</a></div>`);
13498
+ }
13499
+ if (!document.getElementById("sysoutdiv")) {
13500
+ $('body').append(`<div spellcheck="false" id="sysoutdiv" contentEditable="true" style="border:1px solid green;width:800;height:300;overflow:auto">This is System.out</div>`);
13501
+ }
13502
+ }
13503
+
13493
13504
proto._setupJS = function() {
13494
13505
J2S.setGlobal("j2s.lib", {
13495
13506
base : this._j2sPath + "/",
@@ -13499,10 +13510,15 @@ if (ev.keyCode == 9 && ev.target["data-focuscomponent"]) {
13499
13510
});
13500
13511
J2S.setGlobal("j2s.tmpdir", "/TEMP/");
13501
13512
var isFirst = (__execStack.length == 0);
13502
- if (isFirst)
13513
+ if (isFirst)
13503
13514
J2S._addExec([ this, __loadClazz, null, "loadClazz" ]);
13504
13515
this._addCoreFiles();
13505
13516
J2S._addExec([ this, this.__startAppletJS, null, "start applet" ])
13517
+
13518
+ if (J2S._debugCode) {
13519
+ J2S._addExec([ this, __j2sDebugCode, null, "j2sdebugcode" ])
13520
+ }
13521
+
13506
13522
this._isSigned = true; // access all files via URL hook
13507
13523
this._ready = false;
13508
13524
this._applet = null;
0 commit comments