- venkman only -

add fbreak command to source view context menu


git-svn-id: svn://10.0.0.236/trunk@115072 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rginda%netscape.com
2002-02-20 06:45:47 +00:00
parent 9d92a7c416
commit ca0ebf3fe6
5 changed files with 9 additions and 8 deletions

View File

@@ -488,7 +488,7 @@ function cmdEvald (e)
function cmdFBreak(e)
{
if (!e.filePattern)
if (!e.fileName)
{ /* if no input data, just list the breakpoints */
var bplist = console.breakpoints.childData;
@@ -508,7 +508,8 @@ function cmdFBreak(e)
return true;
}
setFutureBreakpoint (e.filePattern, e.lineNumber);
if (setFutureBreakpoint (e.fileName, e.lineNumber))
feedback (e, getMsg(MSN_FBP_CREATED, [e.fileName, e.lineNumber]));
return true;
}

View File

@@ -927,7 +927,5 @@ function setFutureBreakpoint (filePattern, line)
}
console.breakpoints.appendChild (bpr);
feedback (getMsg(MSN_FBP_CREATED, [filePattern, line]));
return bpr;
}

View File

@@ -37,7 +37,7 @@ function initHandlers()
{
function wwObserve (subject, topic, data)
{
dd ("wwObserver::Observe " + subject + ", " + topic);
//dd ("wwObserver::Observe " + subject + ", " + topic);
if (topic == "domwindowopened")
console.onWindowOpen (subject);
else

View File

@@ -135,7 +135,8 @@ function initMenus()
/* Context menu for source view */
C("source-outliner", "source");
m("break", {enabledif: "cx.lineIsExecutable && !has('breakpointRec')"});
m("break", {enabledif: "cx.lineIsExecutable && !has('breakpointRec')"});
m("fbreak", {enabledif: "!cx.lineIsExecutable && !has('breakpointRec')"});
m("clear");
m("-");
m("cont");

View File

@@ -297,8 +297,9 @@ cmd.em-cycle.key = accel shift E
cmd.em-ignore.label = Ig&nore Errors
cmd.em-trace.label = Tr&ace Errors
cmd.fbreak.params = [<file-pattern> <line-number>]
cmd.fbreak.help = Sets a ``future'' breakpoint. Any time a script whose file name matches <file-pattern> is loaded, a breakpoint a <line-number> is set. Setting a breakpoint at line 1 will cause the debugger to break when the script is loaded. fbreak with no parameters will list all future breakponts. See also: break
cmd.fbreak.label = Set &Future Breakpoint
cmd.fbreak.params = [<file-name> <line-number>]
cmd.fbreak.help = Sets a ``future'' breakpoint. Any time a script whose file name matches <file-name> is loaded, a breakpoint a <line-number> is set. Setting a breakpoint at line 1 will cause the debugger to break when the script is loaded. fbreak with no parameters will list all future breakponts. See also: break
cmd.find-bp.label = Find &Breakpoint
cmd.find-bp.params = <breakpoint-rec>