Closed
Description
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
create-react-app chromeDebuggingTest
cd chromeDebuggingTest
npm i
npm run start
- open Visual Studio Code
- add a
.vscode
folder with alaunch.json
according to the a - set a breakpoint in Visual Studio Code (red dot on the left of a line of source code)
- select the debugging Panel in Visual Studio Code, press the play/start button labeled "Chrome"
- 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