Reproduction of Visual Studio issue 531237
Steps to reproduce:
- Clone this repository
- Run
npm install
in the /VSIssue531237 project folder - Open the solution in VS2017 and add a breakpoint on the
console.log('Hello world');
line ofindex.js
- Start debugging
Instead of the breakpoint being hit in index.js
, a breakpoint is hit in node_modules/axios/dist/axios.js
instead, as the debugger incorrectly determines that axios.js
should be the startup script instead of index.js
, as seen in the output in vscode-node-debug2.txt
:
Launch: program 'D:\Projects\VSIssue531237\VSIssue531237\index.js' seems to be the source; launch the generated file 'd:\Projects\VSIssue531237\VSIssue531237\node_modules\axios\dist\axios.js' instead