pudb

How to debug "python -m module_name" using pudb

How to debug "python -m module_name" using pudb Question: I have the following python call: python -m module_name The file structure is as below: module_name __init__.py __main__.py Previously, I debug using pudb for signle python program without -m in the following way: python -m pudb.run file_name.py Considering this, I tried the following command but got …

Total answers: 2

Using Python PuDB debugger with pytest

Using Python PuDB debugger with pytest Question: Before my testing library of choice was unittest. It was working with my favourite debugger – PuDB. Not Pdb!!! To use PuDB with unittest, I paste import pudb;pudb.set_trace() between the lines of code. I then executed python -m unittest my_file_test, where my_file_test is module representation of my_file_test.py file. …

Total answers: 2