blender_vscode icon indicating copy to clipboard operation
blender_vscode copied to clipboard

Debug Python script when running Blender as background process (-b)

Open dodeka12 opened this issue 5 years ago • 3 comments

I am working with vscode on a project located on a remote machine, where I execute blender background jobs running python scripts. Unfortunately, also with an X11 tunnel through ssh and using the blender software gl version, blender does not start up with this addon.

I suppose it should be quite simple to add a command that starts blender with the "-b" option together with the current script in debug mode. Could you add such a feature? Or could you give me a pointer on how this could be implemented in the addon?

dodeka12 avatar Sep 25 '20 09:09 dodeka12

I'm currently slowly but surely rewriting the addon in a different branch. The feature you suggest seems to be fairly doable indeed. I'm not sure when I'll get to it though...

If you want to implement this yourself, you should start by downloading the extension trying to do some small modification. You will have to get into vscode extension development a bit (I feel like this is easier than Blender addons actually). I'm not sure about the best approach to implement this feature yet.

JacquesLucke avatar Sep 25 '20 10:09 JacquesLucke

Thanks for your quick reply. I will have a look at your code and see whether I can implement it myself. Should I get a workable solution, I will create a pull request.

In any case, thanks for your great vscode addon. It's been very helpful for developing Blender addons.

dodeka12 avatar Sep 25 '20 12:09 dodeka12