Can python quickly display results like bash?

Chris Jones cjns1989 at gmail.com
Tue Mar 17 18:43:47 EDT 2009


On Tue, Mar 17, 2009 at 02:10:36PM EDT, Chris Rebert wrote:
> On Mon, Mar 16, 2009 at 6:05 PM, robert song <robertsong.linux at gmail.com> wrote:
> > Hello, everyone.
> > python can be debugged with pdb, but if there anyway to get a quick
> > view of the python execution.
> > Just like sh -x of bash command.
> > I didn't find that there is an option of python that can do it.
> 
> I've read the manpage for bash and can find no such -x option listed.
> And this term is nigh impossible to google for, so that didn't turn
> anything up.

Google "advanced" search -> "bash -x" - with the quotes! 

The first link displayed "bash debugging tips" has a useful discussion.

> What exactly does the -x option to bash do? Where is it documented?

$ bash -c "help set"

CJ



More information about the Python-list mailing list