Bug 1479058 Part 9 - Add breakpoint kind for console messages, r=mccr8.

--HG--
extra : rebase_source : 9c7e5ea2cebbcc81f7bb563e470b832fde4f8ffc
This commit is contained in:
Brian Hackett 2018-08-02 23:32:00 +00:00
Родитель 8eb62dd065
Коммит f9e0de05ea
2 изменённых файлов: 6 добавлений и 1 удалений

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

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