From dca50422f3a316c1fd0d5ecf587bc65bbc3fd39c Mon Sep 17 00:00:00 2001 From: "rginda%netscape.com" Date: Thu, 6 Sep 2001 01:05:02 +0000 Subject: [PATCH] - venkman only - record last stack depth. when the stack depth changes, we display a frame header in the console for single step mode. --- .../venkman/resources/content/venkman-static.js | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/extensions/venkman/resources/content/venkman-static.js b/extensions/venkman/resources/content/venkman-static.js index fa22aaa2220a..c2c7d7376354 100644 --- a/extensions/venkman/resources/content/venkman-static.js +++ b/extensions/venkman/resources/content/venkman-static.js @@ -62,15 +62,6 @@ function startupTests() { if (0) { - /* - dispatchCommand ("fbreak ContextMenu 199"); - - function loaded (data, url) - { - showNextSourceLine (url, 100); - } - loadSource ("chrome://venkman/content/venkman-debugger.js", loaded); - */ openDialog("chrome://venkman/content/tests/tree.xul", "", ""); } @@ -392,7 +383,9 @@ function init() console._munger.addRule ("word-hyphenator", new RegExp ("(\\S{" + MAX_WORD_LEN + ",})"), insertHyphenatedWord); - + + console._lastStackDepth = -1; + initDebugger(); /* debugger may need display() to init */ display(MSG_HELLO, MT_HELLO);