django-pdb

软件截图:
django-pdb
软件详细信息:
版本: 0.3.2
上传日期: 20 Feb 15
开发: Tom Christie
许可: 免费
人气: 2

Rating: nan/5 (Total Votes: 0)

让调试Django的容易
Django的PDB是一个Django应用程序为想要打入PDB很烂,每次加pdb.set_trace()到你的源文件。
不要那样做。
做到这一点。
安装
安装使用PIP:
PIP安装Django,PDB
添加到您的Django项目:
INSTALLED_APPS =(
  ...
 “dj​​ango_pdb',

用法
manage.py的runserver --pdb
落入PDB在每个视图的开始:
庆典:TestProject的/ manage.py的runserver --pdb
验证模型...
找到0个错误
Django的1.3版,使用设置“testproject.settings”
开发服务器在运行http://127.0.0.1:8000/
退出服务器CONTROL-C。
GET /
功能“MyView的”在testapp / views.py:6
的args:()
kwargs:{}
> /Users/tom/github/django-pdb/testproject/testapp/views.py(7)MyView的()
- > a = 1时
(PDB)
manage.py测试--pdb
下降到PDB上的测试错误/故障:
庆典:TestProject的/ manage.py测试testapp --pdb
创建测试数据库别名'默认'...
Ë
================================================== ====================
>>> test_error(testapp.tests.SimpleTest)
-------------------------------------------------- --------------------
回溯(最近通话最后一个):
 文件“/Users/tom/github/django-pdb/testproject/testapp/tests.py”,第16行,在test_error
  one_plus_one = 4
NameError:全局名称'四'是没有定义
================================================== ====================
> /Users/tom/github/django-pdb/testproject/testapp/tests.py(16)test_error()
- > one_plus_one = 4
(PDB)
家Page: https://github.com/tomchristie/django-pdb

Requirements:

  • Python
  • 在Django的

显影剂的其他软件 Tom Christie

意见 django-pdb

评论没有发现
添加评论
打开图片!