我正在使用VSCode作为我的主要JS ide,目前正在开发一个NWJS(node-webkit)应用程序。我想使用VSCode中提供的调试器。有人能指导我如何启动应该是什么样子。
发布于 2016-03-20 15:11:41
你能试着在lauch.json下面试试吗?这对我来说很有效。
{
"version": "0.2.0",
"configurations": [
{
"name": "Launch",
"type": "node",
"request": "launch",
"program": "${workspaceRoot}/camera/app.js",
"stopOnEntry": false,
"args": [],
"cwd": "${workspaceRoot}",
"runtimeExecutable": null,
"runtimeArgs": [
"--nolazy"
],
"env": {
"NODE_ENV": "development"
},
"externalConsole": false,
"sourceMaps": false,
"outDir": null
},
{
"name": "Attach",
"type": "node",
"request": "attach",
"port": 5858,
"sourceMaps": false,
"outDir": null,
"localRoot": "${workspaceRoot}",
"remoteRoot": null
}
]
}https://stackoverflow.com/questions/36110907
复制相似问题