зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1479058 Part 9 - Add breakpoint kind for console messages, r=mccr8.
--HG-- extra : rebase_source : 9c7e5ea2cebbcc81f7bb563e470b832fde4f8ffc
This commit is contained in:
Родитель
8eb62dd065
Коммит
f9e0de05ea
|
@ -57,6 +57,9 @@ struct BreakpointPosition
|
|||
// Break when a new top-level script is created.
|
||||
NewScript,
|
||||
|
||||
// Break when a message is logged to the web console.
|
||||
ConsoleMessage,
|
||||
|
||||
// Break when NewTimeWarpTarget() is called.
|
||||
WarpTarget,
|
||||
|
||||
|
@ -114,6 +117,7 @@ struct BreakpointPosition
|
|||
case OnPop: return "OnPop";
|
||||
case EnterFrame: return "EnterFrame";
|
||||
case NewScript: return "NewScript";
|
||||
case ConsoleMessage: return "ConsoleMessage";
|
||||
case WarpTarget: return "WarpTarget";
|
||||
case ForcedPause: return "ForcedPause";
|
||||
}
|
||||
|
|
|
@ -777,7 +777,8 @@ static bool
|
|||
IsUserBreakpoint(js::BreakpointPosition::Kind aKind)
|
||||
{
|
||||
MOZ_RELEASE_ASSERT(aKind != js::BreakpointPosition::Invalid);
|
||||
return aKind != js::BreakpointPosition::NewScript;
|
||||
return aKind != js::BreakpointPosition::NewScript
|
||||
&& aKind != js::BreakpointPosition::ConsoleMessage;
|
||||
}
|
||||
|
||||
static void
|
||||
|
|
Загрузка…
Ссылка в новой задаче