mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 07:42:04 +00:00
Bug 1269457 - Only set breakpoints for pending bp actors. r=ejpbruel
The special code path carved out in bug 1225160 dropped the `actor.isPending` check which causes many, many attempts to set a breakpoint on every new source notification, leading to a very slow debugging experience. MozReview-Commit-ID: A3pnHzh5eeh
This commit is contained in:
parent
a847380c46
commit
4dc1d16893
@ -2014,7 +2014,9 @@ const ThreadActor = ActorClass({
|
||||
// debugger, and carefully avoid the use of unsafeSynchronize in this
|
||||
// function when source maps are disabled.
|
||||
for (let actor of bpActors) {
|
||||
actor.originalLocation.originalSourceActor._setBreakpoint(actor);
|
||||
if (actor.isPending) {
|
||||
actor.originalLocation.originalSourceActor._setBreakpoint(actor);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user