首页 > 解决方案 > 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?

标签: pythondebuggingblendervisual-studio-debugging

解决方案


推荐阅读