I would like to be able to debug Punjab, a twisted python application, in Netbeans so that I can go through the code. How can i do this? Alternatively, how can I do this in another debugger?
Since you are trying to debug a twisted application, you have several options:
If you use twistd, you can use the -b command line options:
-b, --debug run the application in the Python Debugger (implies nodaemon), sending SIGUSR2 will drop into debugger
You can start the hatch in your twisted process - this allows you to connect to the server and check Python objects - http://twistedmatrix.com/documents/current/core/howto/telnet.html
pdb - . http://docs.python.org/library/pdb.html