【问题标题】:How to debug Azure Functions Core Tools with VS Code debugger?如何使用 VS Code 调试器调试 Azure Functions 核心工具?
【发布时间】: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"
}
]} 

我怎样才能解决这个问题并使调试工作?

【问题讨论】:

标签: node.js azure azure-functions azure-functions-core-tools


【解决方案1】:

令人惊讶的是,问题自行解决了。所以我关闭了这个问题。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2020-12-16
    • 2022-06-24
    • 1970-01-01
    • 2021-11-03
    • 2010-09-24
    • 1970-01-01
    相关资源
    最近更新 更多