execute a python package from the shell step by step e.g. debugging mode

Viewed 140

I want to observe the data flow in a package that is executed in the shell. Is the freqtrade bot. I want to run it step by step so I can observe the dataflow. This have to be executed in the shell with some parameters e.g.:

"freqtrade trade -s strategy"

How could I do this from the shell or from vscode allowing me to go through each step, like if it was debugging mode (which I could not do for the package either)?

1 Answers

there is a debugger called pdb. Check here

Related