sys.path.append(winghome)#os.environ['WINGDB_LOGFILE'] = r'c:\src\blender-debug.log'importwingdbstub wingdbstub.debugger.StartDebug()defrunfile(filename): execfile(filename) runfile(scriptfile) 要使用以上脚本,应当注意: 分别修改需要调试的Wing IDE安装目录和脚本的winghome & scriptfile定义。wing...
Run → Edit Configurations… → + → Python Remote Debug. 1. 设置Local Host Name为“localhost”,Port为“1090”. 或者自己编辑remote_debugger.py进行自定义。 注意设置path mapping路径,local是你的脚本所在项目文件夹,remote是blender\2.8\scripts\addons路径设置问题参考 OK了 重新运行blender,在搜索栏中搜py...
VSCode 下也要安装 Python 插件。用 Blender 安装上面的脚本插件,把 PTVSD 模块所在的目录设置正确(一般即为 site-package 这个目录),激活之。激活后,按空格,输入类似 connect 或者 debug 找到 “Connect to Visual Studio Code Debugger” 命令,执行即可让 Blender 通过本机 3000 端口发送调试信息。 在Visual Studi...
[WINGHOME] = winghome if winghome not in sys.path: sys.path.append(winghome) #os.environ[WINGDB_LOGFILE] = rc:\src\blender-debug.log import wingdbstub wingdbstub.debugger.StartDebug() def runfile(filename): execfile(filename) runfile(scriptfile) 要使用以上脚本,应当注意:分别修改需要调试...
wingdbstub.debugger.StartDebug() def runfile(filename): execfile(filename) runfile(scriptfile) 要使用以上脚本,应当注意: 分别修改需要调试的Wing IDE安装目录和脚本的winghome & scriptfile定义。winghome的位置在Wing IDE About box的Install Directory中可以找到(从帮助菜单可以进入)。
下载remote_debugger.py后,将其安装在Blender中。打开“用户首选项”窗口,然后点击“从文件安装...”底部的按钮。 这个界面在2. 配置插件 在插件首选项中,将Blender指向您的“pycharm-debug-py3k.egg”文件。 步骤2:创建调试服务器配置 PyCharm 调试器配置 在PyCharm 中,创建新的 Python 远程调试器配置:运行→...
Blender loads Python scripts in a way that makes them difficult to debug in a Python debugger. The following stub file can be used to work around these problems: import os import sys # MODIFY THESE: winghome = r'c:\Program Files (x86)\Wing Pro 10' scriptfile = r'c:\src\test\blend...
{ "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" }, Now when you run the debugger with this config in Blender and VS Code the console should print...
{"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"}, Now when you run the debugger with this config in Blender and VS Code the console should print "Debugger is Attac...
* Disables mouse grab (to interact with a debugger in some cases) * Keeps python sys.stdin rather than setting it to None --debug-value <value>,调试的debug的值。 Set debug value of <value> on startup --debug-events ,启用事件系统的调试消息。