我在vscode中测试node-webkit,但是我在执行它时遇到问题。
在我的launch.json文件中,我有这个:
{
"version": "0.2.0",
"configurations": [
{
"name": "Launch",
"type": "node",
"request": "launch",
"program": "index.html",
"stopOnEntry": false,
"args": [],
"cwd": ".",
"runtimeExecutable": "/home/ryan/nwjs/nw",
"runtimeArgs": [
"--nolazy"
],
"env": {
"NODE_ENV": "development"
},
"externalConsole": false,
"sourceMaps": false,
"outDir": null
},
{
"name": "Attach",
"type": "node",
"request": "attach",
"port": 5858
}
]
}
无法启动程序'/home/ryan/Test/index.html';启用源地图可能会有所帮助
从命令行我会运行:
/home/ryan/nwjs/nw /home/ryan/Test
它运行应用程序就好了。
那么,我是设置错误还是其他什么?