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,969
Messages
2,570,161
Members
46,709
Latest member
AustinMudi

Latest Threads

Top