python: is it possible to attach a console into a running process
<p>I just want to see the state of the process, is it possible to attach a console into the process, so I can invoke functions inside the process and see some of the global variables.</p>

<p>It's better the process is running without being affected(of course performance can down a little bit)</p>
