python - Trouble debugging Blender python using Visual Studio 2019
问题描述
I'm trying to investigate some of the operations that Blender does. The particular operation I want to investigate is implemented in Python inside Blender.
I downloaded the code, and followed https://wiki.blender.org/wiki/Building_Blender/Windows and https://wiki.blender.org/wiki/Tools/Debugging/Python_Visual_Studio without, I thought, any trouble. I used VS 2019 instead of 2017, however I had no trouble getting Blender to start up inside the debugger.
The problem is that, when I set a breakpoint inside the Python module in which I'm interested, at runtime the breakpoint ends up disabled, and hovering over it I get "The breakpoint will not currently be hit. No symbols have been loaded for this document."
I've tried both the Debug and Release solution configuration. VS 2019 is set to "Python/Native Debugging." I've tried setting the breakpoint inside the copy of the Python file that's inside the VS project, and also opening the second copy it makes inside "build_windows_Full_x64_vc16_Release\bin\Debug\3.1\scripts" or "build_windows_Full_x64_vc16_Release\bin\Release\3.1\scripts".
So, clearly I've missed a step or done something wrong.
Suggestions?
解决方案
推荐阅读
- angular - 在 ngOnInit 中获取一个对象
- reactjs - React 计算器 - 如何将大于 9 的数字相加?
- python - 如何在使用 django 导入导出库导入 csv 失败时为用户隐藏回溯
- javascript - 防止在 IE v11 上执行第二个块
- java - Intellij 找不到我的 Spring Boot 应用程序
- c# - 获取令牌时如何解决“可能的 System.NullReferenceException”
- sql-server - 关键字 GROUP 附近的语法不正确
- javascript - babel 需要,webpack 没有解决
- javascript - 如何返回 MongoDB 文档以表达路由?
- java - 包含的 XMLBeans .jar 文件使用了错误的 schemaorg_apache_xmlbeans.system.HASH