I have written a python module & building egg file for it. Is there a debug mode available while building, similar to what is available while compiling C code?
If you are talking about interactive debugging while writing python script, I would suggest using
VSCode, which was a good debugger and a lot of other goodies.
See: VS Code from Start