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

Debugging remote CRA applications not working (Remote: Linux/Local:MacOSX)

Aperta
#244 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
TypeScript
Stelle
447
Fork
76
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

When debugging a remote (Linux) `create-react-app` project, vscode successfully launches a local (OSX) instance of Firefox (two windows actually: one opening up to `http://localhost:3000` and another window opened to a blank page but this is likely due to the `yarn: start` task defaulting to launching a browser of its own?). However, any interactive feature/breakpoints that this plugin enables in vscode does not work.

```json
{
"version": "0.2.0",
"configurations": [
{
"type": "firefox",
"request": "launch",
"firefoxExecutable": "developer",
"firefoxArgs": [
"--start-debugger-server",
],
"profile": "dev-edition-default",
"preLaunchTask": "yarn: start",
"name": "Launch localhost",
"enableCRAWorkaround": true,
"url": "http://localhost:3000",
"webRoot": "${workspaceFolder}/src",
"log": {
"fileName": "${workspaceFolder}/vscode-firefox-debug.log",
"fileLevel": {
"default": "Debug"
},
"consoleLevel": {
"default": "Warn"
}
}
},
{
"name": "Attach",
"type": "firefox",
"request": "attach",
"url": "http://localhost:3000",
"webRoot": "${workspaceFolder}/src",
"enableCRAWorkaround": true
},
]
}
```
_Note:_ The `log` parameter does not work as it gives me the following error: `The debug adapter can't write a log file in a remote workspace.` Should I file a separate issue for this?

The settings on the local (OSX) instance of firefox as gleaned from `about:config`
`devtools.debugger.remote-enabled:` `true`
`devtools.chrome.enabled`: `true`
`devtools.debugger.prompt-connection`: `false`
`devtools.debugger.force-local`: `false` <--- I have attempted both `false` and `true`

Am I missing something?

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Start by reproducing the supplied `launch` and `attach` configurations for the remote Linux and local macOS setup, including the `yarn: start` task. Investigate why breakpoints and interactive features do not work and separately verify the reported remote-workspace log error; done means remote CRA debugging works as described or the missing configuration is identified.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
react, vscode
Ambito
developer-experience, tooling
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
25/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.