cgitb for the console. [how to use]

wqe wge at wakalaka.com
Sat Mar 22 05:42:20 CET 2003


On Sat, 22 Mar 2003 04:24:52 +0000, wqe wrote:

> I think cgitb is a great tool. Before things like boa came along, I used
> it heavily for debugging. Anyway, I saw no reason that console error
> mechanism should be worse than cgitb, so I cosmetically hacked through it
> to stop outputting html.
> 
> Anyway, I think the python community process could help improve this code
> so that it could eventually be part of the normal console error mechanism.
> 
> Code here:
> 
> http://home.sus.mcgill.ca/~hperes/contb.py
> 
> Please send patches and explanations to hunterp at CONFUSESPAMBOTS fastmail.fm


As I said, the changes are cosmetic. 

So just like cgitb:
http://python.org/doc/2.2/lib/module-cgitb.html
http://python.org/doc/2.2/lib/node302.html


you would:

import contb.py
contb.enable(1)


#BOMBS away!!







More information about the Python-list mailing list