I need all approaches for debugging python code. Now i know this:

  • pycharm debugger, ipdb
  • logging
  • print trace
  • raise exception, somewhere in interesting place

Also, i am in interested in approaches , how to debug code inside docker container. Now i know this:

  • pycharm remote interpreter
  • docker attach + pdb

Thank you, i am interested in your ideas!


1 Answer 1


You can try VizTracer, which is a profiling/logging tool that will record every entry/exit of your executed function and display those on a timeline. The HTML report looks like this:

enter image description here

It gives very detailed information of your code execution and you can log arbitrary data while your program is running.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.