vscode-debugging
repo to show issue with debugging in vscode
To demo the issue with debugging, below is the code which I am trying to run in vscode:
const XLSX = require('xlsx');
console.log("imported xlsx" + XLSX);
When I try to debug this in vscode, I get the following error:
ReferenceError: Blob is not defined
Refer to screenshot below:
To ignore the files from node_modules, I have tried adding
"skipFiles": [
"${workspaceFolder}/node_modules/**/*.js",
"${workspaceFolder}/lib/**/*.js",
"<node_internals>/**/*.js"
],
in launch.json. After adding skipFiles, none of the breakpoints get triggered e.g. if I put a breakpoint on console log statement, debugger never stops.