2010/12/23

Exploring Objects with iw.debug

iw.debug 是用於 Zope 或 Plone 的偵錯工具,看來是仿照 Debug Anywhere 原理做成,和 plonectl debug 的方式有所不同。以 Plone 4.0.2 為例來安裝,在 buildout.cfg 裡指定 eggs 和 zcml 加入 iw.debug 即可,iw.debug 0.3 的相依套件是 ipython 0.10.1。
執行方式是先 bin/plonecfg fg 在前景模式啟動,透過 http://localhost:8080/myportal/@@ipdb 之類的網址,就可以在 console 看到 ipdb> 提示符號,輸入 ll 可以查看 local 變數。

No comments: