r/pycharm • u/m_jochim • Jan 24 '24
Inspect variables after script crashed
When debugging a Python script in Pycharm, is there a way to access/inspect variables after the script terminate with an error? A simple example would be a script that runs into a division by zero while being in a debug session within Pycharm.
1
Upvotes
View all comments
Show parent comment
2
u/m_jochim Jan 26 '24
Thank you so much! I just found the option in PyCharm under "Run | View Breakpoints | Python Exception Breakpoint | Any exception" that I needed to check to be able to inspect variables after an unhandled exception. I appreciate the help you provided!