【发布时间】:2019-01-08 09:24:05
【问题描述】:
我正在使用 Azure Functions Core Tools 在本地开发 Node.js 应用程序。我想在 VS Code 调试器的帮助下调试它,但我得到了这个错误:
Cannot connect to runtime process, timeout after 10000 ms - (reason:
Cannot connect to the target: connect ECONNREFUSED 127.0.0.1:5858)
对于调试选项,我选择了“附加到 JavaScript 函数”。默认情况下有这个选项,我还没有创建它。
这是我的 launch.json 的内容:
{
"version": "0.2.0",
"configurations": [
{
"name": "Attach to JavaScript Functions",
"type": "node",
"request": "attach",
"port": 5858,
"preLaunchTask": "runFunctionsHost"
}
]}
我怎样才能解决这个问题并使调试工作?
【问题讨论】:
-
您是否安装了 VS Code Azure Functions 扩展?在这里获取:marketplace.visualstudio.com/…
标签: node.js azure azure-functions azure-functions-core-tools