Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move debugging chapter closer to beginning #16

Open
rpicard opened this issue Dec 2, 2013 · 4 comments
Open

Move debugging chapter closer to beginning #16

rpicard opened this issue Dec 2, 2013 · 4 comments

Comments

@rpicard
Copy link
Owner

rpicard commented Dec 2, 2013

From aezell on Hacker News:

I love this. I think it would be useful to move the debugging chapter much earlier in the book. Presumably, new users of Flask will encounter the (pretty awesome) Werkzeug error page as they move through the book. It might work well if a debugging chapter had exposed them to a little bit of how to interpret and use that tool. I'm sure there's a lot more about debugging to cover so maybe splitting things up makes sense too.

https://news.ycombinator.com/item?id=6834818

@iurisilvio
Copy link

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).

@rpicard
Copy link
Owner Author

rpicard commented Dec 2, 2013

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.

@aezell
Copy link

aezell commented Dec 2, 2013

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.

@rpicard
Copy link
Owner Author

rpicard commented Dec 2, 2013

@aezell That's a cool idea. Let me know if anything jumps out at you then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants