`
nathan.wu
  • 浏览: 48767 次
  • 性别: Icon_minigender_1
  • 来自: 南京
最近访客 更多访客>>
文章分类
社区版块
存档分类
最新评论

django debug how

阅读更多
On the other hand a quick list for myself in case the blog post disappears:

   1. using “assert False” in your views will raise the default debug output in the browser we all know when something goes wrong
   2. using “print” statements will print to the terminal (didn’t know that, woah!)
   3. using “pdb” module you can debug faulty functions, step by step
   4. using “django.test.client Client” to interactively act as a browser and access to HttpResponse objects


http://simonwillison.net/2008/May/22/debugging/
http://www.petersblog.org/node/1051
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics