[Erp5-dev] pdb doesn't work with ZSQLCatalog

Jérome Perrin jerome at nexedi.com
Wed Apr 15 19:17:42 CEST 2009


Le mercredi 15 avril 2009 à 18:37 +0200, Santi Camps a écrit :
> Hi all,
> 
> I'm just beginning to use ZSQLCatalog, that looks great, working fine
> until know, but I have a problem trying to debug my code.   When
> ZSQLCatalog product is added to my zope instance, pdb.set_trace()
> doesn't work.   If I remove the product, then works again.   So, seems
> that somewhere inside the product is disabling pdb, but couldn't find
> what (no pdb refereces in the code, stdout looks right, ...).
> Anybody knows what could be happening ?

Hello,

ERP5 enables psyco, and psyco "disables" pdb. I guess this is what
happened to you.
There is a wiki page describing a workaround
http://www.erp5.org/HowToDebugERP5#psycoissue

Maybe we could change ERP5 code to disable psyco when zope is running in
debug mode ?

Jérome




More information about the Erp5-dev mailing list