eclipse-wildwebdeveloper / eclipse-wildwebdeveloper/wildwebdeveloper
Breakpoint stops in the transpiled js file instead of the source file
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- Java
- Estrellas
- 201
- Forks
- 76
- Merge medio
- 4 d 7 h
- PR fusionados (30 d)
- 21
Descripción
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
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Línea de trabajo
Reproduce el problema con la configuración de Volto y la configuración de la aplicación Node.js usando razzle/bin/razzle.js. Establece un breakpoint en la línea 176 de src/server.jsx, accede a localhost:3000 y compara la detención en build/server.js con la ubicación de origen solicitada. Se considera terminado cuando el depurador se detiene en src/server.jsx en lugar de en el archivo transpilado.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- javascript, node.js, webpack
- Área
- developer-experience, devtools, tooling
- Tipo de issue
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 35/100