firefox-devtools / firefox-devtools/vscode-firefox-debug

SourceActorProxy Error on Setting Breakpoints

Offen
#302 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
TypeScript
Sterne
447
Forks
76
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

Hello, I'm having a repeat problem lately when trying to use this extension to debug an Angular 14 application in VSCode.

My OS is macOS 12.5.1 (x86_64)
Browser is Firefox Developer Edition 105.0b2
VSCode Version is 1.70.2
Extension Version is 2.9.8
Angular Version 14.0.5

I find that any time I set a breakpoint in a file while I have Firefox debugging started, I receive something to the effect of:

```
DEBUG|044.875|BreakpointsManager: Setting 1 breakpoints for /path/to/src/app/app.component.ts
DEBUG|044.876|SourceAdapter: Going to delete 0 breakpoints
DEBUG|044.876|SourceAdapter: Going to add 1 breakpoints
DEBUG|044.888|SourceMappingSourceActorProxy: Calculating ranges for webpack:///src/app/app.component.ts within its generated source
DEBUG|049.077|SourceMappingSourceActorProxy: Fetching generated breakpoint locations for webpack:///src/app/app.component.ts, 928:0 - 1131:0
DEBUG|049.077|SourceActorProxy: Fetching breakpoint positions of http://localhost:4200/main.js for range: {"start":{"line":928,"column":0},"end":{"line":1131,"column":0}}
DEBUG|049.077|DebugConnection: Sending request {"to":"server1.conn0.child10/source26","type":"getBreakpointPositionsCompressed","query":{"start":{"line":928,"column":0},"end":{"line":1131,"column":0}}}
DEBUG|049.078|DebugConnection: Received response/event {"from":"server1.conn0.child10/source26","error":"noSuchActor","message":"No such actor for ID: server1.conn0.child10/source26"}
ERROR|049.079|SourceActorProxy: No such actor "server1.conn0.child10/source26"
```

My launch.json config is:
```
{
"name": "Build then Launch Firefox",
"request": "launch",
"type": "firefox",
"url": "http://localhost:4200/",
"webRoot": "${workspaceFolder}",
"preLaunchTask": "npm: starthot",
"log": {
"fileName": "${workspaceFolder}/vscode-firefox-debug.log",
"fileLevel": {
"default": "Debug"
}
}
}
```

where npm: starthot is simply a wrapper for ng serve with the specific configuration we use for debugging supplied.

It seems the error is that the server1.conn0.child10/source26 actor does not exist. I've verified that the various under-the-hood settings in about:config are matching and we're using the default debugging ports. I can confirm that launch does start Firefox in remote control mode evidenced by the red-striped URL with a little robot, and if I open the devtools in the browser itself, I can navigate to the Webpack sources in the current thread, set breakpoints, and they are even hit in the browser console, but the breakpointing connection between VSCode/the extension and the browser seems to be getting stuck.

Any ideas or suggestions? Let me know if any further info is needed. Thank you!

Beitragsleitfaden

Beitragsleitfaden öffnen

Rechercherichtung

Reproduziere den Breakpoint-Fehler mit der geposteten launch.json-Konfiguration in der Angular-Anwendung und beginne dann mit den SourceMappingSourceActorProxy- und SourceActorProxy-Logeinträgen rund um getBreakpointPositionsCompressed. Als abgeschlossen gilt die Aufgabe, wenn das Setzen eines Breakpoints aus VS Code keinen noSuchActor-Fehler mehr verursacht und der Breakpoint ausgelöst werden kann.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
angular, typescript, vscode, webpack
Bereich
devtools, frontend
Issue-Typ
Bug
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
30/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.