I have a wsgi app which has this in the code:
import rpdb2; rpdb2.start_embedded_debugger("asdf")
Now using rpdb2 (not winpdb!) I would like to connect to the process and start debugging.
I can't figure out how to do that. How do I connect to a running process or how do I make that process to connect to the debugger?
Use commands inside rpdb2:
(I assume that you want to connect to process running on localhost. Otherwise you should use --host switch)
$ ./rdb2
RPDB2 - The Remote Python Debugger, version RPDB_2_4_8,
Copyright (C) 2005-2009 Nir Aides.
Type "help", "copyright", "license", "credits" for more information.
> password "debugger"
Password is set to: "debugger"
> attach
Connecting to 'localhost'...
Scripts to debug on 'localhost':
pid name
--------------------------
7772 myscript.py
> attach 7772
> *** Attaching to debuggee...
> *** Debug Channel is encrypted.
> *** Successfully attached to
> *** 'myscript.py'.
> *** Debuggee is waiting at break point for further commands.
> go
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With