eclipse-wildwebdeveloper / eclipse-wildwebdeveloper/wildwebdeveloper
Breakpoint stops in the transpiled js file instead of the source file
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Java
- Sterne
- 201
- Forks
- 76
- Ø Merge
- 4 T. 7 Std.
- Gemergte PRs (30 T.)
- 21
Beschreibung
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
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Reproduziere das Problem mit dem Volto-Setup und der Node.js-Anwendungskonfiguration unter Verwendung von razzle/bin/razzle.js. Setze einen Breakpoint in Zeile 176 von src/server.jsx, rufe localhost:3000 auf und vergleiche den Halt in build/server.js mit der angeforderten Quellposition. Erledigt ist es, wenn der Debugger in src/server.jsx statt in der transpilierten Datei anhält.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- javascript, node.js, webpack
- Bereich
- developer-experience, devtools, tooling
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 35/100