Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Breakpoint stops in the transpiled js file instead of the source file #1371

Open
wesleybl opened this issue Oct 18, 2023 · 0 comments
Open

Comments

@wesleybl
Copy link

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:

  • yarn must be installed.
  • Run the commands:
git clone git@github.com:plone/volto.git
cd volto
yarn
Program: /path/to/volto/node_modules/razzle/bin/razzle.js
Arguments: start
Working directory: /path/to/volto
  • On the Environment tab, create a PATH variable and enter the path to the node executable 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.js instead of src/server.jsx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant