Moo-Ack-Productions / MCprep

Blender python addon to increase workflow for creating minecraft renders and animations
https://theduckcow.com/MCprep
GNU General Public License v3.0
287 stars 24 forks source link

Allow the creation of an MCprep build with proper debugging #604

Closed StandingPadAnimations closed 3 months ago

StandingPadAnimations commented 4 months ago

As MCprep is an extremely complex addon, debugging using traditional means in Blender is incredibly difficult. Some of the bugs in #601 were extremely deep level bugs that were incredibly difficult to debug normally. Each time we wanted to check a different variable, we had to modify print statements and rebuild the code, which is slow when a bug involves assets.

In an ideal world, Blender would come with a Python debugger that would allow us to analyze multiple things at once, and would allow the use of breakpoints. With the addition of Blender Extensions however, it might be possible to allow the creation of a debug build that uses https://github.com/microsoft/debugpy, and allow us to attach to it from an editor that supports it (VScode natively, Neovim with https://github.com/HiPhish/debugpy.nvim, etc). Then we could add a debug-build action that includes these wheels into the MCprep build, and otherwise excludes them at runtime. This would allow for much more advanced debugging in MCprep.

Some requirements:

StandingPadAnimations commented 4 months ago

:D image

StandingPadAnimations commented 3 months ago

Closing this as done, but we'll need to look further into making this more cross-platform