I usually run my scripts from the terminal like:
python script.py
Sometimes the code is running for long time and suddenly an error arises and stops the ongoing run. Instead of just stopping the run, is it possible to automatically enter to an interactive session at the point where the error happened? This would be of great use to debugging.
Any suggestion?