source <virtualenv directory>/bin/activate pip install winpdb
import rpdb2 rpdb2.start_embedded_debugger('password')
'password' value can be anything; this is simply the password that you will use in the next step to attach to
When this line of code executes, the script will freeze for a default period of 5 minutes, waiting for a debugger to attach.
Now run the topology:
petrel submit --config topology.yaml
Winpdb simply by running
For more details on how to use Winpdb for embedded debugging, see the documentation at http://winpdb.org/docs/embedded-debugging/.
When the window appears, select File...