👻 Check our latest review to choose the best laptop for Machine Learning engineers and Deep learning tasks!
This is a question I have wondered about for quite some time, yet I have never found a suitable solution. If I run a script and I come across, let"s say an IndexError, python prints the line, location and quick description of the error and exits. Is it possible to automatically start pdb when an error is encountered? I am not against having an extra import statement at the top of the file, nor a few extra lines of code.
👻 Read also: what is the best laptop for engineering students?