Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/cksachdev/vscode-debugging

Debugging in VSCode
https://github.com/cksachdev/vscode-debugging

issues vscode vscode-debugger xlsx

Last synced: about 21 hours ago
JSON representation

Debugging in VSCode

Awesome Lists containing this project

README

        

# 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:
![Preview](https://github.com/cksachdev/docs/blob/master/vscode-debugging.png
)

To ignore the files from node_modules, I have tried adding
```
"skipFiles": [
"${workspaceFolder}/node_modules/**/*.js",
"${workspaceFolder}/lib/**/*.js",
"/**/*.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.