Bug 1510463 - Allow adding breakpoints without pausing. r=jlast

Differential Revision: https://phabricator.services.mozilla.com/D13737

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Logan Smyth 2018-12-17 19:20:05 +00:00
Родитель 6c4784ab31
Коммит f6b29a07c4
2 изменённых файлов: 9 добавлений и 0 удалений

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

@ -136,6 +136,9 @@ RootActor.prototype = {
noBlackBoxing: false,
// Support for server pretty-printing has been removed.
noPrettyPrinting: true,
// Added in Firefox 66. Indicates that clients do not need to pause the
// debuggee before adding breakpoints.
breakpointWhileRunning: true,
// Trait added in Gecko 38, indicating that all features necessary for
// grabbing allocations from the MemoryActor are available for the performance tool
memoryActorAllocations: true,

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

@ -194,6 +194,12 @@ SourceClient.prototype = {
});
};
// With async sourcemap processing removed from the server, it is not
// necessary for clients to pause the debuggee before adding breakpoints.
if (this._client.mainRoot.traits.breakpointWhileRunning) {
return doSetBreakpoint();
}
// If the debuggee is paused, just set the breakpoint.
if (this._activeThread.paused) {
return doSetBreakpoint();