Is it possible to debug my script in IDEs such as Pycharm #1701
-
I want to debug my script in Pycharm but I cannot make it. I must run the command "manimgl <my_script> <my_scene_name>" which means my script is loaded into the manimgl executable and Pycharm cannot debug it. I tried to follow instructions in https://p14jeffwest.blogspot.com/2020/04/how-to-debug-manim-code-with-pycham.html, but it is for the old version of manim. In the new version, I could not find the manim.py file, and the manimgl module does not have the attribute main so I cannot directly use manim.py in the old version. I also tried to attach Pdb to Pycharm but I failed either. I wounder if it is kind of you to provide something like manim.py to enable debugging in IDEs. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
update: I found it in manimlib/main.py, now I can debug scripts in Pycharm just by changing the command to python <package_path>/manimlib/main.py <script_path> |
Beta Was this translation helpful? Give feedback.
update: I found it in manimlib/main.py, now I can debug scripts in Pycharm just by changing the command to python <package_path>/manimlib/main.py <script_path>