Skip to content

Debugging with Chrome as described in Documentation does not work #3270

Closed
@codepunkt

Description

@codepunkt

Is this a bug report?

Yes.

Can you also reproduce the problem with npm 4.x?

Yes.

Which terms did you search for in User Guide?

Debugging in the Editor

Environment

node@8.6.0
npm@5.5.0
react-scripts@1.0.14
windows 10
vscode@1.17.1
chrome@61.0.3163.100

Steps to Reproduce

  1. create-react-app chromeDebuggingTest
  2. cd chromeDebuggingTest
  3. npm i
  4. npm run start
  5. open Visual Studio Code
  6. add a .vscode folder with a launch.json according to the a
  7. set a breakpoint in Visual Studio Code (red dot on the left of a line of source code)
  8. select the debugging Panel in Visual Studio Code, press the play/start button labeled "Chrome"
  9. see the breakpoint not being hit when the app is executed in Chrome

Expected Behavior

Breakpoint being hit in Chrome

Actual Behavior

  • breakpoint is not hit
  • breakpoint color turns grey in Visual Studio Code
  • it has something to do with sourcemaps not matching

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions