![]() I thought it was my VS Code config but no, it was this. I have never used Visual Studio, but you can find more info on setting everything up here: Remotely Debugging Python Code on Linux. For Visual Studio, the debugpy version that works depends on the Visual Studio version.If you are using something like Conda and want to use a virtual environment, to have the addon auto-detect the path you can: activate the environment, run Blender from the command line, and it should work.It checks where python or whereis python or which python to try and determine where python is and uses the first path given 2. If you already have python installed and you can run it from the command line (aka PATH is set), the addon should find it.Install Python 3 with pip and check add to PATH. The onyl fix is to go where the addon was installed and rename the folder there. It used to be you could rename the zip, but this no longer works, you'll get an error when you try to enable the addon. This is because blender has a problem with the periods in the name from the version number. You must down it with the the green Clone or Download button above. Blender now requires you enable Settings => Interface => Developer Extras before you can see the commands.Blender changed the default shortcut to the search menu.This video was done with blender 2.79, but everything still works mostly the same.If you have any questions or suggestions, don't hesitate to file an issue. ![]() I have made a video (click the image below) for those who just started messing with python in Blender or programming in general, but if you're semi-familiar with Python, VS Code, and the command line the following should make sense. Tell you when the debugger has actually attached.Auto-detect where python is and auto set the path to debugpy if installed.Since the VS Code one wasn't really well documented and it looked kind of dead, once I figured it out, I was just going to add the documentation, but then I ended up rewriting the whole thing. Inspired by Blender-VScode-Debugger which was itself inspired by this remote_debugger for pycharm as explained in this Blender Developer's Blog post. Blender Debugger for VS Code (and Visual Studio)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |