Python Forum
Thread Rating:
  • 1 Vote(s) - 4 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Step through process
#1
Does anyone know of software that would allow me to see what is going on with my code line by line so I can see where it hangs up? What's actually working?

Thanks in advance!
Reply
#2
if you install VSCode IDE see: https://python-forum.io/Thread-VS-Code-f...ght=VSCode
you can use the built in debugger to run step by step, it also allows you to modify variables and execute statements on the fly,
watch specified variables change state, and more.
Reply
#3
You might find http://pythontutor.com/visualize.html#mode=edit useful.
Reply
#4
Just to add that all advanced IDEs (not just VSCode) have debugger that offer step-by-step execution, breaking points, monitor variable values, etc.

for VS Code: Debugging configuration and also Debugging general info
for PyCharm
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs

Reply
#5
You can have a look on module pdb :
https://docs.python.org/3/library/pdb.html
It comes with python and it is extensible, so you can add your own debugging code and create automation if you wish.
Also, Idle comes with python, and is slightly different.
Pudb is also console based, very easy to use, and very efficient. I use it on production or slow computers with no GUI. It's in debian repository. See :
https://pypi.org/project/pudb/
Furthermore, winpdb is with a GUI, works on linux (and windows, but I never tried on it), with an interesting feature : it can be attached by a socket, so you can debug background or distant processes. Useful with web applications and also in debian repository.
On windows, you could try pywin32, efficient for GUI applications.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How to sharing object between multiple process from main process using Pipe Subrata 1 3,620 Sep-03-2019, 09:49 PM
Last Post: woooee

Forum Jump:

User Panel Messages

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