TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Iterating Faster with PDB and Flask

5 点作者 rayk超过 12 年前

3 条评论

tomlu超过 12 年前
Maybe I'm missing something really obvious, but I don't understand where Flask fits into the picture. The article seems to introduce the first few steps of how you can debug <i>any</i> Python with pdb, not just Flask applications.
Nate75Sanders超过 12 年前
Try "pudb" instead of "pdb" if you want a fullscreen debugger.<p><a href="http://pypi.python.org/pypi/pudb" rel="nofollow">http://pypi.python.org/pypi/pudb</a><p>Also, agreed with tomlu -- this will work for any python app (as long as it doesn't do strange things to stdout -- nose and daemons are probably the most common examples of things that do change stdout).
lucian1900超过 12 年前
I tend to use pdb like this a lot. I write about as much of a piece of code as is obvious and then have it drop into pdb. I can then look around and play around with what I could do next.