Skip to content

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

Open

Description

@wesleybl

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions