Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python.announce > #3036

ANN: elicit CLI framework with enhanced debugger 1.7

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From kdart <keith.dart@gmail.com>
Newsgroups comp.lang.python.announce
Subject ANN: elicit CLI framework with enhanced debugger 1.7
Date Sat, 29 Dec 2018 11:54:53 -0800 (PST)
Lines 16
Approved python-announce-list@python.org
Message-ID <mailman.18.1546434054.4816.python-announce-list@python.org> (permalink)
References <5587f269-3ab6-4481-882b-40c1482eff17@googlegroups.com>
Mime-Version 1.0
Content-Type text/plain; charset="UTF-8"
X-Trace news.uni-berlin.de 8V/5+I2e5DsNCAF4fT1iIg0csXCUZRohpbKFf/aSlsew==
X-Orig-Path v55no3968231qtk.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail
Return-Path <news@google.com>
X-Original-To python-announce@python.org
Delivered-To python-announce-list@mail.python.org
X-Spam-Status OK 0.021
X-Spam-Evidence '*H*': 0.96; '*S*': 0.00; 'itself.': 0.05; 'subject:ANN': 0.07; 'url:pypi': 0.07; 'commands': 0.09; 'debugger': 0.09; 'exception.': 0.09; 'chained': 0.16; 'dependencies': 0.16; 'exceptions,': 0.16; 'pdb': 0.16; 'url:project': 0.16; 'python': 0.19; 'header:User-Agent:1': 0.25; 'cases.': 0.30; 'inspect': 0.30; 'module.': 0.30; 'module': 0.31; 'skip:" 20': 0.32; "i've": 0.33; 'url-ip:151.101.0.223/32': 0.34; 'url-ip:151.101.128.223/32': 0.34; 'url-ip:151.101.192.223/32': 0.34; 'url-ip:151.101.64.223/32': 0.34; 'received:google.com': 0.34; 'url-ip:151.101.192/24': 0.34; 'really': 0.34; 'url- ip:151.101.0/24': 0.35; 'url-ip:151.101.128/24': 0.35; 'url- ip:151.101.64/24': 0.35; 'url-ip:151.101/16': 0.36; 'url- ip:151/8': 0.36; 'message-id:@googlegroups.com': 0.37; 'subject:: ': 0.38; 'some': 0.38; 'received:209.85': 0.38; 'debugging': 0.38; 'package.': 0.38; 'fact': 0.39; 'received:209.85.160': 0.39; 'received:209': 0.39; 'still': 0.39; 'header:Received:5': 0.40; 'however,': 0.61; 'active': 0.61; 'making': 0.65; 'to:addr:comp- lang-python-announce': 0.69; 'to:addr:moderators.isc.org': 0.74; 'lose': 0.79
Delivered-To comp-lang-python-announce@moderators.isc.org
X-Google-DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:path:newsgroups:date:complaints-to :injection-info:nntp-posting-host:user-agent:mime-version:message-id :subject:from:injection-date:to; bh=HgDSrG/W68gNR/+2S6mkxCXjizday9HQJDfSXMn+MgE=; b=nltGsrgwJbEeQ9Xi3C08TFXpNqYaCxpy8ysTo9uKXYhY0rbJC5HW8Q0qye6IHj5RXh lb2Blxq/rLsidEbElLtJhLnrL65Gb97jozGieGuklK1/1OyyEV4wHunl3xsUEtcMWgdt AakyTWzdYAhvar9bXjzq5JGlAxN+9L5/W9J2Ya/Rb2zrak9kV3RYe5BXblgDShqEW2o5 RaWJg+f5ZQX8VIdvIQzgz9Dn8mX52khC2pz9BiLIKJQcoQLwgSKC2dLrzoNKBugnPLMe 267hps+C914cjkBpb73v0JpjSxIADVIz4AvA5RC8eWG6k6qg+vA/qThWtTCuUvkbyOnd /JUA==
X-Gm-Message-State AJcUukfqmP3TFkLzYV/9yHqWicEzjBF9zuM7ql/UqsnAyU8OjylMpBCg ZjyXbhCViacGAp+tfHSej1GXYWSQgbzrzeKZw5s=
X-Google-Smtp-Source ALg8bN51hZlcoa6DMWAA1/C3q1fb8MaAWWQwfjxXXCgvPtEU/oRFW0WslbCKhufP+q8j0hoOUAD/EP1IlS6KA9hjGq8P6j8MGNj9
X-Received by 2002:a0c:9dd5:: with SMTP id p21mr23797040qvf.31.1546113293993; Sat, 29 Dec 2018 11:54:53 -0800 (PST)
X-Received by 2002:a37:77c5:: with SMTP id s188mr472496qkc.0.1546113293701; Sat, 29 Dec 2018 11:54:53 -0800 (PST)
Complaints-To groups-abuse@google.com
Injection-Info glegroupsg2000goo.googlegroups.com; posting-host=2600:1700:a3a0:9a1f:222:15ff:fe00:a3e6; posting-account=3-SQkgoAAAD3MoClTeKdybDCiW0sDK0k
User-Agent G2/1.0
Injection-Date Sat, 29 Dec 2018 19:54:53 +0000
X-Mailman-Approved-At Wed, 02 Jan 2019 08:00:50 -0500
X-BeenThere python-announce-list@python.org
X-Mailman-Version 2.1.29
Precedence list
List-Id Announcement-only list for the Python programming language <python-announce-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-announce-list>, <mailto:python-announce-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-announce-list/>
List-Post <mailto:python-announce-list@python.org>
List-Help <mailto:python-announce-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-announce-list>, <mailto:python-announce-list-request@python.org?subject=subscribe>
X-Mailman-Original-Message-ID <5587f269-3ab6-4481-882b-40c1482eff17@googlegroups.com>
Xref csiph.com comp.lang.python.announce:3036

Show key headers only | View raw


I really like the exception chaining feature of Python 3. I also like the fact that an exception instance now has access to the traceback, making it the only object you need to start a debugging session from an exception. 

However, the stock pdb module still does not make it easy to inspect the chained exceptions. 

So I've recently added that feature to my debugger module.

It's contained in the Elicit package.

https://pypi.org/project/elicit/

The new commands "switch", and "cause" will switch tracebacks to the "context", or "cause" exceptions, respectively. 

The elicit framework is a CLI framework that the debugger uses (replaces cmd). It has no other dependencies itself. 

To get this feature you should enter the debugger from the function "from_exception(exc)". The "post_mortem" function only takes a traceback, so you lose the active exception in some cases. 

Back to comp.lang.python.announce | Previous | Next | Find similar | Unroll thread


Thread

ANN: elicit CLI framework with enhanced debugger 1.7 kdart <keith.dart@gmail.com> - 2018-12-29 11:54 -0800

csiph-web