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 > Libraries

    offlinetb 0.0.5

    Download button

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

    License / Price:

    Last Updated:

    Category:
    Rotem Yaari | More programs
    BSD License / FREE
    March 22nd, 2012, 16:26 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    offlinetb description

    Tools for distilling tracebacks for offline viewing

    offlinetb is a small Python module for serializing python tracebacks for later examination. Its simple premise is:

    >>> from offlinetb import distill
    >>> try:
    ... some_code()
    ... except:
    ... offline_tb = distill()


    distill returns a Pythonic data structure describing the exception caught. It holds, among else:

    - The exception object caught, its type, value representation, and data members
    - The traceback itself, frame by frame
    - Each frame contains its filename, function name, line number, sample lines before and after, the faulty line itself, and the locals. Each local has its data members, value representation and name distilled.

    Distilled tracebacks use only simple datatypes (numbers, strings, lists, dictionaries), guaranteeing their ability to be serialized to other formats (e.g. JSON).

    The original purpose of offlinetb was to display tracebacks caught via a web app, and an example for this usage is included; under the rendering/ directory you can find a sample Javascript, CSS and HTML that displays a given JSON traceback in a .


    Product's homepage

    Requirements:

    · Python

      


    TAGS:

    distilling tracebacks | offline viewing | offline | viewing | tracebacks



    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