From 300127f7a6b652e5f0e8daeef43dd6f920cc6098 Mon Sep 17 00:00:00 2001 From: "rginda%netscape.com" Date: Wed, 13 Jun 2001 09:31:12 +0000 Subject: [PATCH] - not built - factor step and continue commands. Toggle script list mode (short name/ full url) on column header click fix bug focusing a source file more than once enable UI for debug commands onDebugTrap --- .../resources/content/venkman-handlers.js | 42 +++++++++++++------ 1 file changed, 30 insertions(+), 12 deletions(-) diff --git a/extensions/venkman/resources/content/venkman-handlers.js b/extensions/venkman/resources/content/venkman-handlers.js index e6ea288451b..d2934756b07 100644 --- a/extensions/venkman/resources/content/venkman-handlers.js +++ b/extensions/venkman/resources/content/venkman-handlers.js @@ -33,6 +33,32 @@ * */ +console.doCommandStep = +function con_step() +{ + if (!console.frames) + { + display (MSG_ERR_NO_STACK, MT_ERROR); + return false; + } + + step(); + return true; +} + +console.doCommandCont = +function con_step() +{ + if (!console.frames) + { + display (MSG_ERR_NO_STACK, MT_ERROR); + return false; + } + + cont(); + return true; +} + console.displayUsageError = function con_dusage (command) { @@ -46,6 +72,7 @@ function con_ondt () focusSource (frame.script.fileName, frame.line); console._stackOutlinerView.setStack(console.frames); console._stackOutlinerView.setCurrentFrame (getCurrentFrameIndex()); + enableDebugCommands() } console.onLoad = @@ -418,17 +445,7 @@ function con_iscope () console.onInputStep = function con_iwhere () { - if (!console.frames) - { - display (MSG_ERR_NO_STACK, MT_ERROR); - return false; - } - - console.jsds.interruptHook = console._executionHook; - var topFrame = console.frames[0]; - console._stepPast = topFrame.script.fileName + topFrame.line; - console.jsds.exitNestedEventLoop(); - return true; + return console.doCommandStep(); } console.onInputQuit = @@ -545,6 +562,7 @@ function con_stackclick (e) if (target.localName == "outlinercol") { + console._scriptsOutlinerView.toggleColumnMode(); console._scriptsOutlinerView.setScripts(console._scripts); } else if (e.detail == 2 && target.localName == "outlinerbody") @@ -561,7 +579,7 @@ function con_stackclick (e) if (console._sources[fileName]) { - focusSource(url, 0); + focusSource(fileName, 0); } else {