BlackStartx / PyCharm-Blender-Plugin

A PyCharm Plugin that simplify the development of Blender Add-On inside the PyCharm IDE.
MIT License
151 stars 12 forks source link

No connection to the Blender while using the debug mode #9

Open adamryczkowski opened 2 years ago

adamryczkowski commented 2 years ago

Hi!

I believe I have managed to install and configure the PyCharm-Blender-Plugin.

I've then created a new Blender Addon just as in the instructions you've provided.

I've used a toy blender plugin code "Move X Axis" available from https://docs.blender.org/manual/en/latest/advanced/scripting/addon_tutorial.html. The code installs a trivial Object addon, and I have verified it works on my Blender if I install it manually.

"Running" the Blender works: When I hit the "Run" button from within the "Blender-Plugin" panel (not the one I usually push to debug local Python code), I get the Blender opened with my addon installed.

When I hit the "Debug" I also get the Blender app opened with my addon installed (yes, the new version gets installed over whatever other version of my Addon I might have had). The problem is that the PyCharm status reports waiting for the "Process Connection..." forever.

In the meantime, when I set a breakpoint inside the code of my addon and execute it from within the Blender, I don't get the debug experience.

I have exactly the same problem on Ubuntu 20.04 with Blender 3.1.2 and PyCharm 2022.1 Professional installed from snap and on MacOs 12.3.1 with PyCharm 2022.1 Professional and Blender 3.1.2

Blender_screenshot

image (3)