1. Using Rpdb2.start_embedded_debugger, note to set the parameter fallowremote to True
2.winpdb front-end GUI using Python2
3.RPDB compatible python2,3
4.winpdb-1.4.8 Download
defStart_embedded_debugger (pwd, fallowunencrypted=True, Fallowremote=False, timeout=timeout_five_minutes, Fdebug=False):""" Use ' Start_embedded_debugger ' to invoke the debugger engine in embedded scripts. Put the following line as the first line in your Script:import rpdb2; Rpdb2.start_embedded_debugger (PWD) This would cause the script to freeze until a debugger console attaches. Pwd-the password that governs security of client/server communication Fallowunencrypted-allow unencrypted Commu Nications. Communication would be authenticated and encrypted only if possible. Fallowremote-allow debugger consoles from remote machines to connect. Timeout-seconds to wait for attachment before giving up. If None, never give up. Once The timeout period expires, the debuggee would resume execution. Fdebug-debug output. Importnat SECURITY note:using A hardcoded PASSWORD May is unsecure SINCE anyone with READ PERMISSION to the SCRIPT Would be ABLE to READ the PASSWORD and CONNECT to the DEBUGGER and do WHATEVER they WISH VIA the ' EXEC ' DEBUGGER COMMAND. It is safer to Use:start_embedded_debugger_interactive_password ()""" return __start_embedded_debugger(pwd, fallowunencrypted, Fallowremote, Timeout, fdebug)defStart_embedded_debugger_interactive_password (fallowunencrypted=True, Fallowremote=False, timeout=timeout_five_minutes, Fdebug=False, stdin=Sys.stdin, stdout=sys.stdout):ifG_server is notNone:return ifStdOut is notNone:stdout.write ('Please type password:') PWD= Stdin.readline (). Rstrip ('N') return __start_embedded_debugger(pwd, fallowunencrypted, Fallowremote, Timeout, fdebug)
Reference:
1.1190000000356018
2.http://winpdb.org/docs/embedded-debugging/
Python winpdb remote Debugging