Z3 ECM Enterprise Content Management for Zope3

pdb'ing to eggs installed with zc.buildout

If you use zc.buildout to install eggs, it sometimes happens that you can't pdb into their code.

The reason for this is that the egg is built in a temporary directory and then moved to its destination. During the build, setuptools creates .pyc files which contain an absolute path reference to the original .py file. Since it's done a temp directory, this reference will be outdated.

A quick fix is to simply remove all the .pyc files from the egg and have them rebuilt automatically next time you use the package.

Comments

sort by threads Subject Author Date
  That might be a "quick"f ix... pje 01/08/07 05:18
Posted by Philipp von Weitershausen @ 07/30/2007 06:40 PM. - Categories: Python -  1 comments