VSCODE:连接Econnrefuse 127.0.0.1:5678尝试使用VSCODE调试搅拌机时

发布于 2025-01-31 20:04:03 字数 1189 浏览 2 评论 0原文

我正在尝试使用VSCODE远程调试搅拌机。

我发现本教程:

“ rel =” nofollow noreferrer“搅拌机插件连接到远程连接到VSCODE。这些都起作用了,但是当我进入VScode并尝试运行调试时,它给了我此错误消息:

connect ECONNREFUSED 127.0.0.1:5678 

Blender在收到此消息时仍在等待连接。 我真的不知道如何解决这个问题,有人可以帮助我吗?

还要感谢

这是我的lauch.json文件:

{
  // Use IntelliSense to learn about possible attributes.
  // Hover to view descriptions of existing attributes.
  // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
  "version": "0.2.0",
  "configurations": [
    {
      "name": "Python: Attach",
      "type": "python",
      "request": "attach",
      "port": 5678, //careful, this used to be 3000 in older versions of vscode and this addon
      "host": "localhost"
    }
  ]
}

这是我的系统信息:

OS:Mac Big Sur

Blender-debugger-for-vscode附加版:2.0.0

Blender版本:2.90.0

vs代码版本:1.67。 2

VS代码Python扩展版本:2022.6.2

DEBUGPY版本:1.6.0

路径由python或相应命令列出的路径: /Users/lhwang/.pyenv/shims/python

vs code/visual Studio是否连接到故障排除脚本? 否。它显示了其等待连接

python路径/解释器检测到/由VS代码/Visual Studio选择的解释器: /Users/lhwang/.pyenv/versions/3.7.10/bin/python3.7

I'm trying to remote debug Blender with VsCode.

I found this tutorial:
https://www.youtube.com/watch?v=UVDf2VSmRvk

Where he used a blender addon to connect to remote connect to VsCode. These all worked, But when I went into VsCode, and try to run the debugging, it gave me this error message:

connect ECONNREFUSED 127.0.0.1:5678 

Blender is still waiting for connection when I got this message.
I really don't know how to solve this, can someone help me with this?

Thanks

Also, this is my lauch.json file:

{
  // Use IntelliSense to learn about possible attributes.
  // Hover to view descriptions of existing attributes.
  // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
  "version": "0.2.0",
  "configurations": [
    {
      "name": "Python: Attach",
      "type": "python",
      "request": "attach",
      "port": 5678, //careful, this used to be 3000 in older versions of vscode and this addon
      "host": "localhost"
    }
  ]
}

And this is my system info:

OS: Mac Big Sur

blender-debugger-for-vscode Add-on Version: 2.0.0

Blender Version: 2.90.0

VS Code Version: 1.67.2

VS Code Python Extension Version: 2022.6.2

debugpy version: 1.6.0

Paths listed by where python or the corresponding command:
/Users/lhwang/.pyenv/shims/python

Does VS Code / Visual Studio connect to the troubleshooting script?
No. It shows its waiting for connection

Python path/interpreter detected/selected by VS Code/Visual Studio:
/Users/lhwang/.pyenv/versions/3.7.10/bin/python3.7

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文