@@ -11964,6 +11964,8 @@ if (database == "_" && J2S._serverUrl.indexOf("//your.server.here/") >= 0) {
1196411964 }
1196511965 }
1196611966
11967+ J2S.getClassList = function(){J2S._saveFile('_j2sclasslist.txt', Clazz.ClassFilesLoaded.sort().join('\n'))}
11968+
1196711969 // J2S._localFileSaveFunction -- // do something local here; Maybe try the
1196811970 // FileSave interface? return true if successful
1196911971
@@ -13490,6 +13492,15 @@ if (ev.keyCode == 9 && ev.target["data-focuscomponent"]) {
1349013492 return c;
1349113493 }
1349213494
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+
1349313504 proto._setupJS = function() {
1349413505 J2S.setGlobal("j2s.lib", {
1349513506 base : this._j2sPath + "/",
@@ -13499,10 +13510,15 @@ if (ev.keyCode == 9 && ev.target["data-focuscomponent"]) {
1349913510 });
1350013511 J2S.setGlobal("j2s.tmpdir", "/TEMP/");
1350113512 var isFirst = (__execStack.length == 0);
13502- if (isFirst)
13513+ if (isFirst)
1350313514 J2S._addExec([ this, __loadClazz, null, "loadClazz" ]);
1350413515 this._addCoreFiles();
1350513516 J2S._addExec([ this, this.__startAppletJS, null, "start applet" ])
13517+
13518+ if (J2S._debugCode) {
13519+ J2S._addExec([ this, __j2sDebugCode, null, "j2sdebugcode" ])
13520+ }
13521+
1350613522 this._isSigned = true; // access all files via URL hook
1350713523 this._ready = false;
1350813524 this._applet = null;
0 commit comments