Interacting with Streamlit Data After Execution

I need to interact with the code and see some of the variables after the execution. Right now, after every execution (takes around 5 min), I had to see the problem and put some prints to see how parameters changed and re-run the analysis to solve the issue.

I know it is very similar to debugging, but I don’t want to use it, since I found it really complex in VSCode. What I want to do is a connection to streamlit using a python interpreter, so I can just write print(a) where a is calculated by Streamlit during long executions.

Is this something we can do or am I asking too much?