【发布时间】:2021-06-18 03:46:39
【问题描述】:
我在 VSCode 中使用 Windows 10 WSL。
我有扩展远程开发,WSL,我也安装了节点,nvm。
在远程 WSL 中工作并尝试调试时,我根本没有节点选项。
当我运行文件时,我得到:
No debugger available, can not send 'variables'
我的launch.json如下:
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Launch Program",
"skipFiles": [
"<node_internals>/**"
],
"program": "${file}"
}
]
}```
Can someone please help me fix it by adding Node.js option so I can properly debug?
Thanks a lot in advance!
【问题讨论】:
标签: node.js debugging visual-studio-code windows-subsystem-for-linux