record last stack depth. when the stack depth changes, we display a frame header in the console for single step mode.
This commit is contained in:
rginda%netscape.com 2001-09-06 01:05:02 +00:00
Родитель 5988811887
Коммит dca50422f3
1 изменённых файлов: 3 добавлений и 10 удалений

Просмотреть файл

@ -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);