Debugging streamlit in spyder

Does anyone have a good workflow for debugging streamlit apps in spyder, particularly for apps that use st.session_state variables? It seems there is a good solution for PyCharm (see Version 1.5.0 - #11 by tim) but I’m unclear how to apply this in spyder. In particular, I cannot seem to set or retrieve any st.session_state variables within spyder and I get the message (for instance with st.session_state["app_path"]): AttributeError: st.session_state has no attribute "app_path". Did you forget to initialize it?

Or should I just be switching to PyCharm to develop streamlit apps?

Thank you!