How To Show The Output Of 'l' In Python Pdb After Every Command Entered
I would like to have the output of the python pdb 'l' command printed to the screen after every command I enter in an interactive debugging session.
Is there a way to setup python pdb to do this?
One way to do this is to alias your favourite commands to run the command and then l.
(Pdb) alias s step ;; l (Pdb) s > /usr/lib/python2.5/distutils/core.py(14)<module>() -> from types import * 9 # This module should be kept compatible with Python 2.1. 10 11 __revision__ = "$Id: core.py 38672 2005-03-20 22:19:47Z fdrake $" 12 13 import sys, os 14 -> from types import * 15 16 from distutils.debug import DEBUG 17 from distutils.errors import * 18 from distutils.util import grok_environment_error 19
In your ~/.pdbrc you can add the aliases so you have them every time:
alias s step ;; l
- → What are the pluses/minuses of different ways to configure GPIOs on the Beaglebone Black?
- → Django, code inside <script> tag doesn't work in a template
- → React - Django webpack config with dynamic 'output'
- → GAE Python app - Does URL matter for SEO?
- → Put a Rendered Django Template in Json along with some other items
- → session disappears when request is sent from fetch
- → Python Shopify API output formatted datetime string in django template
- → Shopify app: adding a new shipping address via webhook
- → Shopify + Python library: how to create new shipping address
- → shopify python api: how do add new assets to published theme?
- → Access 'HTTP_X_SHOPIFY_SHOP_API_CALL_LIMIT' with Python Shopify Module