You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
7.7 KiB
1 line
7.7 KiB
2 years ago
|
<html>
<title>DynAPI Debugger</title>
<head>
<script>
function handleError(msg, url, lno) {
if (!(dynapi && dynapi.debug)) alert(msg);
else dynapi.debug.error(msg, "Debugger", lno);
};
var dynapi
var dform
var win = this;
var lastCaller=window.opener;
var imgwatch,imgnormal,imghelp,imginspect,imgreload;
var imgclear,imgeval,imgnext,imgprev;
win.onload = function() {
// move the debug window to the right edge?
//dynapi.debug.win.clientWidth = 200;
//win.document.body.style.width = 200; //clientWidth=200
//alert(win.setSize)
//alert(win.document.body.clientWidth)
var w = dynapi.ua.mac? (dynapi.ua.ie?330:300) : 360;
if (dynapi.ua.ie) {
var f = dynapi.frame;
var b = f.document.body;
var x = Math.min(f.screenLeft+b.clientWidth+20,screen.width-w-10);
dynapi.debug.win.moveTo(x,f.screenTop-50);
}
else if (dynapi.ua.ns4) {
var f = dynapi.frame;
var x=f.screenX+f.outerWidth;
var y=f.screenY+50;
dynapi.debug.win.moveTo(x,y);
}else{
dynapi.debug.win.moveTo(100,100)
}
dform=document.forms['debugform'];
dynapi.debug.print();
dynapi.debug.setEvaluate();
window.setTimeout('window.onfocus = setFocus;',500);
}
function NullFn(){}; // null function
function setFocus(){
dynapi={'_imageHook':NullFn};
if(window.opener) dynapi = window.opener.dynapi;
if(dynapi && dynapi.debug) {
if(!dynapi.debug.win) dynapi.debug.win=win;
var url = dynapi.documentPath+dynapi.library.path+'ext/';
var f=dynapi.functions;
imgwatch=f.getImage(url+'images/debug_imgwatch.gif',25,22,{alias:"DebugIMGWatch",name:"DebugIMGWatch",downsrc:url+"images/debug_imgwatch_down.gif",oversrc:url+"images/debug_imgwatch_on.gif",onclick:"dynapi.functions.False(dynapi.debug.switchMode('watch'))",tooltip:"Show Watch Mode"}).getHTML();
imgnormal=f.getImage(url+'images/debug_imgnormal.gif',25,22,{alias:"DebugIMGNormal",name:"DebugIMGNormal",downsrc:url+"images/debug_imgnormal_down.gif",oversrc:url+"images/debug_imgnormal_on.gif",onclick:"dynapi.functions.False(dynapi.debug.switchMode('normal'))",tooltip:"Show Normal Mode"}).getHTML();
imginspect=f.getImage(url+'images/debug_imginspect.gif',80,22,{alias:"DebugIMGInspect",name:"DebugIMGInspect",oversrc:url+"images/debug_imginspect_on.gif",onclick:"dynapi.functions.False(dynapi.debug.inspect(dynapi.debug.win.document.debugform.inspect.value))",tooltip:"Inspect Variable/Object",hspace:1}).getHTML();
imgreload=f.getImage(url+'images/debug_imgreload.gif',25,22,{alias:"DebugIMGReload",name:"DebugIMGReload",oversrc:url+"images/debug_imgreload_on.gif",onclick:"dynapi.functions.False(dynapi.debug.reload(dynapi.debug.win.document.debugform.reload.value))",tooltip:"Load/Reload DynAPI Packages, HTML Pages and JavaScript (.js) files",hspace:1}).getHTML();
imgclear=f.getImage(url+'images/debug_imgclear.gif',46,22,{alias:"DebugIMGClear",name:"DebugIMGClear",oversrc:url+"images/debug_imgclear_on.gif",onclick:"dynapi.functions.False(dynapi.debug.reset());",tooltip:"Clear debug window",hspace:1}).getHTML();
imgeval=f.getImage(url+'images/debug_imgeval.gif',100,22,{alias:"DebugIMGEval",name:"DebugIMGEval",oversrc:url+"images/debug_imgeval_on.gif",onclick:"dynapi.functions.False(dynapi.debug.evaluate(dynapi.debug.win.document.debugform.eval.value));",tooltip:"Evalute JavaScript",hspace:2}).getHTML();
imgnext=f.getImage(url+'images/debug_imgnext.gif',25,22,{alias:"DebugIMGNext",name:"DebugIMGNext",oversrc:url+"images/debug_imgnext_on.gif",onclick:"dynapi.functions.False(dynapi.debug.getEvalHistory(1))",tooltip:"Forward",hspace:1}).getHTML();
imgprev=f.getImage(url+'images/debug_imgprev.gif',25,22,{alias:"DebugIMGPrev",name:"DebugIMGPrev",oversrc:url+"images/debug_imgprev_on.gif",onclick:"dynapi.functions.False(dynapi.debug.getEvalHistory(-1))",tooltip:"Backward",hspace:1}).getHTML();
imghelp=f.getImage(url+'images/debug_imghelp.gif',25,22,{alias:"DebugIMGHelp",name:"DebugIMGHelp",downsrc:url+"images/debug_imghelp_down.gif",oversrc:url+"images/debug_imghelp_on.gif",onclick:"dynapi.functions.False(dynapi.debug.showHelp())",tooltip:"Quick Hel
|