Python Forum
set -x shell equivalent of python, possible/available?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
set -x shell equivalent of python, possible/available?
#1
For fast debugging line by line, I use "set -x" in shell scripts. It shows line by line execution and its result in output console.
Seems no such thing in python, or am I wrong? If so, what are equivalents in python that I can see line by line execution?

I explore followings:
1) python --verbose: waaaaaaay to versbose, I just need line by line execution only no deep verbose info.
2) python3 -m pdb: it is like a debugging, walk through line-by-line, convenient but too slow.
Thx!
Reply
#2
Try the trace module perhaps.
« We can solve any problem by introducing an extra level of indirection »
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Equivalent Python code from VBA Mishal0488 4 2,541 May-02-2024, 10:17 PM
Last Post: DeaD_EyE
  Help creating shell scrip for python file marciokoko 10 3,403 Sep-16-2023, 09:46 PM
Last Post: snippsat
  Launch Python IDLE Shell from terminal Pavel_47 5 2,641 Feb-17-2023, 02:53 PM
Last Post: Pavel_47
  batch file for running python scipt in Windows shell MaartenRo 2 3,060 Jan-21-2022, 02:36 PM
Last Post: MaartenRo
  Python C++ Template Equivalent deanhystad 7 5,647 May-04-2021, 07:45 PM
Last Post: deanhystad
  How to make a Python program run in a dos shell (cmd) Pedroski55 2 3,238 Nov-09-2020, 10:17 AM
Last Post: DeaD_EyE
Bug Python Shell 3.9.0 - Issue with indentation Earis 17 10,454 Oct-31-2020, 07:00 AM
Last Post: Earis
  Python "Terminal" vs "Shell" SectionProperties 2 3,453 Apr-10-2020, 08:36 AM
Last Post: SectionProperties
  python equivalent to MATLAB xcov chai0404 2 4,866 Apr-02-2020, 10:29 PM
Last Post: chai0404
  Python equivalent of Matlab code kwokmaster 1 4,369 Mar-25-2020, 10:14 PM
Last Post: j.crater

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020