
On dg., abr. 19 2020, salil GK wrote:
I am real need to debug my python application for memory issues. I found that using twisted.conch.manhole we can get a telnet session to python interpreter so that we can do some debugging sessions there. I am using twisted 16.6 in my server. Could you some one please give me some sample program for achieving this.
Thanks ~S
PS: I have posted this message in stack overflow. Sorry for cross posting. I have joined this group only today.
As glyph mentioned, you really should be running newer Twisted; it is entirely possible that many recommendations would not work because of the old version. That being said, you can peek in this repository, which has a manhole over SSH and public key-based auth: https://github.com/evilham/isalive.me/blob/master/isaliveme/conch_helpers.py (At least parts of the code in that file should end up in Twisted some day) Or peek in matrix-synapse's code, which has a telnet-based one. Or these, even more minimal examples: https://twistedmatrix.com/documents/current/conch/examples/index.html -- Evilham