Is there anyway to debug classes made with manim?
If this is a support request:
Please attempt to solve the problem on your own before opening an issue. Between old issues, StackOverflow, and Google, you should be able to find solutions to most of the common problems.
Include at least:
- Steps to reproduce the issue (e.g. the command you ran)
- The unexpected behavior that occurred (e.g. error messages or screenshots)
- The environment (e.g. operating system and version of manim)
If this is a feature request:
Include the motivation for making this change.
Depends on what you mean by debug, I guess.
If your demand is to debug your code which use manim library to generate video file, refer to below page. It explains the way of debugging with PyCham program for the code using manim library.
https://p14jeffwest.blogspot.com/2020/04/how-to-debug-manim-code-with-pycham.html
Briefly speaking, the idea is changing run command without -m option in the PyChan Run/Debuf Configuration as below:
python manim.py sample_code.py SampleClass -pl
In the above web page, I explained how to set Configuration for debugging in PyCham with several screen shot. Therefore you can easily follow the guide.
Depends on what you mean by debug, I guess.
What i mean by debugging is to see if there are any bugs in the code and it is behaving as is expected - the variables are getting the values they are supposed to, etc
If your demand is to debug your code which use manim library to generate video file, refer to below page. It explains the way of debugging with PyCham program for the code using manim library.
https://p14jeffwest.blogspot.com/2020/04/how-to-debug-manim-code-with-pycham.html
Briefly speaking, the idea is changing run command without -m option in the PyChan Run/Debuf Configuration as below:
python manim.py sample_code.py SampleClass -pl
In the above web page, I explained how to set Configuration for debugging in PyCham with several screen shot. Therefore you can easily follow the guide.
I will try pyCharm but i am using VS Code and I like it quite much.
You could always try using pdb for most debugging purposes by the way. Just import pdb and then pdb.set_trace(). I'd suggest reading into it even for general Python debugging.
You could always try using
pdbfor most debugging purposes by the way. Justimport pdband thenpdb.set_trace(). I'd suggest reading into it even for general Python debugging.
This is good advice. Thanks
#894 <- Read my way around here.