How to output the commands that are executed in a python script?

P

Peng Yu

I want to show what commands have been executed when I run a python
script. Is there an option which can instruct python to print the
commands automatically?

(If you are familiar with R, what I am asking is essentially
options(echo=T) in R.)
 
L

Lie Ryan

I want to show what commands have been executed when I run a python
script. Is there an option which can instruct python to print the
commands automatically?

(If you are familiar with R, what I am asking is essentially
options(echo=T) in R.)

It's not exactly the same, but pdb (Python Debugger) can do something
similar.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,770
Messages
2,569,586
Members
45,086
Latest member
ChelseaAmi

Latest Threads

Top