Unify debugger initialization and thread selection
Categories
(DevTools :: Debugger, enhancement)
Tracking
(firefox105 fixed)
| Tracking | Status | |
|---|---|---|
| firefox105 | --- | fixed |
People
(Reporter: ochameau, Assigned: ochameau)
References
Details
Attachments
(1 file)
We are currently updating more things when selecting a thread than when opening the debugger.
Let's use a unique codepath when it comes to handle a new top level target.
When we select a thread we do all this:
https://searchfox.org/mozilla-central/rev/c0bed29d643393af6ebe77aa31455f283f169202/devtools/client/debugger/src/actions/pause/commands.js#20-51
While we do only this when opening the debugger:
https://searchfox.org/mozilla-central/rev/c0bed29d643393af6ebe77aa31455f283f169202/devtools/client/debugger/src/actions/navigation.js#38-48
Also in the reducer we have two distinct action which should ideally have the same behavior, but this isn't guaranteed as they have distinct implementation:
https://searchfox.org/mozilla-central/rev/c0bed29d643393af6ebe77aa31455f283f169202/devtools/client/debugger/src/reducers/pause.js#236-242
| Assignee | ||
Comment 1•3 years ago
|
||
We are updating more things when selecting a thread than when opening the debugger.
Let's use a unique codepath when it comes to handle a new top level target.
Updated•3 years ago
|
Comment 3•3 years ago
|
||
| bugherder | ||
Description
•