如何在Django模板中插入断点? [英] How to insert breakpoint in django template?

查看:55
本文介绍了如何在Django模板中插入断点?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在Django模板中插入 pdb.set_trace()?或者也许在模板中运行其他调试.

How I can insert pdb.set_trace() in django template? Or maybe run some another debug inside template.

推荐答案

PyCharm Professional Edition支持Django模板的图形调试.有关如何执行此操作的更多信息,请点击此处:

PyCharm Professional Edition supports graphical debugging of Django templates. More information about how to do that is here:

https://www.jetbrains.com/help/pycharm/2016.1/debugging-django-templates.html

PyCharm的调试器非常非常好.这就是目前最好的Python IDE.

PyCharm's debugger is very, very good. It is just about the best Python IDE available.

免责声明:我是一个满意的客户,但没有其他既得利益.

Disclaimer: I am a satisfied customer, but have no other vested interest.

这篇关于如何在Django模板中插入断点?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆