Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • BackTrack 5 R2
  • Wine 1.4 / 1.5.5
  • Mozilla Firefox 12...
  • Ubuntu 11.04
  • Angry Birds 1.1.2.1
  • Ubuntu 10.04.4 LTS
  • Linux Kernel 3.4
  • Ubuntu Manual 10.10
  • Adobe Flash Player...
  • Pidgin 2.10.4
  • Home > Linux > Programming > Debuggers

    rpdb 0.1.2

    Download button

    No screenshots available
    Downloads: 68  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Bertrand Janin | More programs
    ISC License / FREE
    January 30th, 2012, 23:59 GMT [view history]
    ROOT / Programming / Debuggers

     Read user reviews (0)  Refer to a friend  Subscribe

    rpdb description

    pdb wrapper with remote access via TCP socket

    rpdb is essentially a Python wrapper around pdb that will re-route stdin and stdout to a socket handler. By default it opens the debugger on port 4444:

    import rpdb; rpdb.set_trace()

    But you can change that by simply instantiating Rpdb manually:

    import rpdb
    debugger = rpdb.Rpdb(12345)
    debugger.set_trace()


    It is known to work on Jython 2.5, Python 2.5 and Python 3.1. It was written originally for Jython since this is pretty much the only way to debug it when running it on Tomcat.

    After that your script will "hang" when entering set_trace() and the only way to get it to continue is to access rpdb using telnet, netcat, etc..:

    nc 127.0.0.1 4444

    Installation on CPython (standard Python)

     python setup.py install

    Installation in a Tomcat webapp

    Just copy the rpdb directory (the one with the __init__.py file) in your WEB-INF/lib/Lib folder along with the standard Jython library (required).


    Product's homepage

    Requirements:

    · Python

    Limitations:

    · The socket is now closed properly so you will need to ^C in netcat and ^in telnet to exit after a continue.
    · For some obscure reason, you will need to run continue twice on Jython.

    What's New in This Release: [ read full changelog ]

    · Catch IOError raised by print in initialization, it may not work in some environments (e.g. mod_wsgi). (Menno Smits)

      


    TAGS:

    pdb wrapper | remote access | Python | pdb | wrapper



    HTML code for linking to this page:


    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM