Python winpdb remote Debugging

Source: Internet
Author: User
Tags stdin

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.