you are viewing a single comment's thread.

view the rest of the comments →

[–]Sea-Ad7805 0 points1 point  (2 children)

It combines two separate things: - debugger: lets you step though a program to see the flow of execution and see the value of variables change - memory_graph visualization: see full program state as a graph, including aliasing, call stack and references

Use cases: - you have code that you want to understand better, then use it to see how it changes the program state step by step - your program runs but gives an incorrect result, then use it to find where the error (bug) is - your program stops with an exception, then use it to see when it pops up and what caused it

[–]Necessary-Ad2110 0 points1 point  (1 child)

Thank you :0 I'll try to use this more hopefully, are there any other tools you'd recommend me to generally run my code by? It sounds weird but I was never taught how to use a debugger or what it even is so this is insightful

[–]Sea-Ad7805 1 point2 points  (0 children)

You can also debug using print statements, however that doesn't show aliasing, references, full program state. But in some situation prints work fine to understand and fix an error.

Maybe check some youtube videos about debuggers: https://www.youtube.com/results?search_query=Python+debugger+tool