hi everyone,
I need to debug my code and want to know in which sequence the code run and outputs of every variables like in Matlab workspace.
thanks
I would suggest using pdb, the python debugger.
If you do not need to access every intermediate variable, but only start an interactive session at a given point, my favorite tool is IPython
s embed function, which can be added to your code like:
from IPython import embed; embed()
.
See for instance: https://switowski.com/blog/ipython-debugging
1 Like
thanks dokken. I have tried IPython and it is great!