Reputation: 806
Use pdb to debug python scripts on Linux.
import pdb pdb.set_trace()
to breakpoint. Can I open the tui window like gdb, or a similar code window to see the code in real time?Upvotes: 0
Views: 1330
Reputation: 7431
Yes you can. TUI command for that is python3 -m pdb script.py
and here is good tutorial on how to use it: https://realpython.com/python-debugging-pdb/
Upvotes: 1