Forum Archive

A neat feature with unhandled exceptions

dgelessus

Here's a small feature you may not know about:

When a script generates some kind of exception that is not handled, Pythonista displays the line at which it occured. This however also suppresses the stacktrace being printed to the console, which makes finding bugs hard. What you may not know (I certainly didn't until now) is that the stacktrace can still be viewed by tapping the now red script name, which will show the full stacktrace in addition to the regular class and function list.

userista

that's awesome! I had no clue. When working on my iPhone in portrait the error message would get cut off and I would re-run the code in landscape just to see the error. No more of that!! Thanks!