firebug lite javascript库的turbogears小部件包装器。
TGFirebugLite的Python项目详细描述
安装:
[sudo] easy_install TGFirebugLite
或:
- Download the Egg manually from here or the Cheeseshop.
- Install with ^{tt1}$.
用法:
要使用这个小部件,只需将其添加到tg.include_widgets配置中 设置,例如在dev.cfg:
tg.include_widgets = ['firebug.widgets.firebug_js', ...]
如果您不想模拟firebug控制台,但希望阻止调用 在javascript代码中console.log()不会导致错误,然后 将小部件名称更改为firebug.widgets.firebugx_js。
要试用它,只需在页面加载和firebug控制台后按F12 框架将在页面底部打开。您可以输入javascript命令 在底部的命令行中,在控制台中查看它们的结果 上面是伐木区。
有关详细信息,请参见http://www.getfirebug.com/lite.html。