コードにこれを含むwsgiアプリがあります:
import rpdb2; rpdb2.start_embedded_debugger("asdf")
現在、rpdb2 (winpdbではありません! ) を使用して、プロセスに接続し、デバッグを開始したいと考えています。
その方法がわかりません。実行中のプロセスに接続する方法、またはそのプロセスをデバッガーに接続する方法を教えてください。
rpdb2 内でコマンドを使用します。
(localhostで実行されているプロセスに接続したいと思います。それ以外の場合は、 --host スイッチを使用する必要があります)
$ ./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