我正在使用Visual Studio Code(VSCode)开发Power BI应用程序,但出现与launch.json
相关的错误。
错误消息包括:
Cannot connect to runtime process, timeout after 10000ms - (reason: Cannot connect to the target: connect ECONNREFUSED 127.0.0.1:9222)
Cannot launch program ...setting 'outFiles' attribute might help.
我尝试过的 launch.json
配置包括:
{
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "launch",
"name": "Launch Program",
"program": "${file}"
}
]
}
和
{
"version": "0.1.0",
"configurations": [
{
"name": "Debugger",
"type": "chrome",
"request": "attach",
"port": 9222,
"sourceMaps": true,
"webRoot": "${cwd}/"
}
]
}
我是VSCode的新手。在调试Javascript代码时,我通常使用Firefox控制台视图进行对象检查,评估表达式等。我希望VSCode调试控制台的工作方式类似于Firefox。
如何为系统配置launch.json
?
如何使VSCode调试器正常工作?