[tracking] Worker Debugging
Server-side meta bug: 1520698.
Todos
- [x] refreshing clears selected source #7708
- [ ] [Workers] Use one tree instead of one tree per thread #8005
- [x] remove sources when a worker is removed #7660
1. refreshing clears selected source
- go to http://firefox-dev.tools/debugger-examples/examples/todomvc/
- open the debugger and select todo-view
- refresh --> notice how todo-view is missing
2. pausing early on fails to properly resume
- go to http://localhost:8000/?react_perf&firefox-tab=child1/frameTarget1
- open the debugger and select firefox/events.js
- add a breakpoint on line 116 in newSource
- refresh --> notice how the debugger icon is green, but we don't have a call stack
With the second bug, i was able to "fix" the problem by flagging off workers in the client and changing isWorker
diff --git a/devtools/client/debugger/new/src/client/firefox/commands.js b/devtools/client/debugger/new/src/client/firefox/commands.js
index 9633efd63d94..c050403c25cf 100644
--- a/devtools/client/debugger/new/src/client/firefox/commands.js
+++ b/devtools/client/debugger/new/src/client/firefox/commands.js
@@ -417,7 +417,7 @@ async function fetchSources(): Promise<any[]> {
}
async function fetchWorkers(): Promise<Worker[]> {
- if (features.windowlessWorkers) {
+ if (false && features.windowlessWorkers) {
workerClients = await updateWorkerClients({
tabTarget,
debuggerClient,
diff --git a/devtools/client/debugger/new/src/utils/workers.js b/devtools/client/debugger/new/src/utils/workers.js
index b31801bc9085..60f0d90e5c0f 100644
--- a/devtools/client/debugger/new/src/utils/workers.js
+++ b/devtools/client/debugger/new/src/utils/workers.js
@@ -12,5 +12,5 @@ export function getDisplayName(thread: Thread) {
}
export function isWorker(thread: Thread) {
- return thread.actor.includes("workerTarget");
+ return false; // thread.actor.includes("workerTarget");
}
@jasonLaster for the first issue, are you refereshing the todomvc page? or the debugger? If I refresh the todomvc page the the todo-view is still selected. If I refresh the debugger all tabs are closed. <- is this what you meant?
@WenInCode i think dbg.features.windowlessDebuggers has to be true for it to regress
Firefox Developer Tools (including Debugger tool) development is entirely happening in Bugzilla and new issues should be reported here: https://bugzilla.mozilla.org/enter_bug.cgi?product=DevTools&component=Debugger
Honza