eclipse-wildwebdeveloper / eclipse-wildwebdeveloper/wildwebdeveloper
Breakpoint stops in the transpiled js file instead of the source file
Nessuno ha ancora preso questa issue.
- Lingua principale
- Java
- Stelle
- 201
- Fork
- 76
- Merge medio
- 4g 7h
- PR unite (30g)
- 21
Descrizione
I use a project that uses webpack to transpile js files. In new debug, when I put breakpoint in a source file, debug stops at the transpiled file instead of the source file.
Steps to reproduce:
yarnmust be installed.- Run the commands:
git clone git@github.com:plone/volto.git
cd volto
yarn
- Create an Eclipse project pointing to the
voltofolder. - Put a breakpoint on this line: https://github.com/plone/volto/blob/6c65e03a896b8ba38022963c651999c9cf636b51/src/server.jsx#L176
- Go to "Run -> Debug Configurations... -> Node.js application" and create a new configuration.
- On the Program tab, fill in the following configurations:
Program: /path/to/volto/node_modules/razzle/bin/razzle.js
Arguments: start
Working directory: /path/to/volto
- On the Environment tab, create a
PATHvariable and enter the path to thenodeexecutable folder on your machine. For example:/usr/bin - Click in Apply.
- Click in Debug.
- Wait for the server to start.
- In the browser, access:
http://localhost:3000 - The debug stop in
build/server.jsinstead ofsrc/server.jsx
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Riproduci il problema con la configurazione di Volto e la configurazione dell’applicazione Node.js usando razzle/bin/razzle.js. Imposta un breakpoint alla riga 176 di src/server.jsx, accedi a localhost:3000 e confronta l’arresto in build/server.js con la posizione sorgente richiesta. Il lavoro è completato quando il debugger si arresta in src/server.jsx invece che nel file transpilato.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- javascript, node.js, webpack
- Ambito
- developer-experience, devtools, tooling
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100