Open rpicard opened 10 years ago
I agree with this one. Several people I taught about it didn't know it was possible even after using Flask for some time.
Today, I prefer to explicitly raise an exception in my code to use werkzeug error page instead of use pdb (or other tools).
It's a +1 from me as well. It makes a lot of sense to start the reader off right with debugging techniques for the rest of the book.
Thanks for creating this issue Robert. It's possible getting into deeper debug issues early in the book more generate more questions than progress. So, perhaps, a short chapter or just a section elucidating the Werkzeug error page is enough to keep folks from being frightened the first time they run into it. You could even work it in fairly deftly in an early section by intentionally introducing an error in a URL route or a missing config value. I haven't yet read version 0.1 but maybe something will jump out as soon as I do.
@aezell That's a cool idea. Let me know if anything jumps out at you then.
From aezell on Hacker News:
https://news.ycombinator.com/item?id=6834818