PuDB is a full-screen, console-based visual debugger for Python
Questions tagged [pudb]
39 questions
3
votes
2 answers
How to debug "python -m module_name" using pudb
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…

Dylan Su
- 5,975
- 1
- 16
- 25
2
votes
0 answers
How can I launch pudb with IPython's post-mortem %debug?
I just got started using breakpoint() and pudb, which is awesome. Now how do I make IPython's %debug magic launch pudb?
Note: The pudb docs say "A post-mortem mode makes it easy to retrace a crashing program’s last steps." On the other hand the…

Patrick
- 1,829
- 19
- 32
2
votes
2 answers
How to make a decorator transparent to debugger
I am working on a decorator library that is modifying keyword arguments of a function, and the library is doing what I want it to do, but it's very inconvenient that while debugging, whenever the user function is called, the debugger has to pass…

Manuel Pasieka
- 151
- 1
- 1
- 10
2
votes
3 answers
PUDB Error:
I'm new to pudb. It run fine for the most-part, but when I try to enter a library it apparently doesn't recognize, I get the following message:
…

JS.
- 14,781
- 13
- 63
- 75
2
votes
2 answers
Cannot use pudb for multiprocessing
I am trying to use pudb to debug with multiprocessing, but I encounter error as below:
Code:
def worker():
i = 0
while i < 10:
pudb.set_trace()
i = i + 1
time.sleep(1)
if __name__ == '__main__':
p1 =…

Alexander Phung
- 75
- 1
- 9
1
vote
1 answer
Better text UI debugger for C++, like pudb for python
I'm trying to debug a large C++ project on Linux remotely, which is a little difficult to re-build via Visual Studio locally. Therefore I attempt to debug it via console. While, the gdb or gdb --tui or gdb-dashboard tools is not convenient for…

Tong
- 83
- 5
1
vote
1 answer
pudb3 raises TypeError when I try to open modules
Recently, I noticed I could not open any modules in pudb3. Previously, I often used the system. I am not sure what changes break my pudb environment. How do I fix this problem?
My Environment
Ubuntu 16.04
pudb.version: 2018.1
$ python -V
Python…

jef
- 3,890
- 10
- 42
- 76
1
vote
1 answer
redirect django runserver output in order to debug with pudb
I'm currently trying to use pudb to troubleshoot a django application.
In order to do so, I'm running the runserver instead of gunicorn.
Then, when I want to debug, I added:
import pudb; pu.db
The pudb gui shows up correctly but is quickly garbled…

E. Jaep
- 2,095
- 1
- 30
- 56
1
vote
0 answers
pudb error, ipdb and pdb no error.
I am switching tool-chains, from an eclipse based python ide to a vim based equivalent.
I am currently experimenting with pudb.
I am trying to step through some code google gives as examples for tensorflow. It runs in a venv, on python3.5. None…

alphaXed
- 21
- 3
1
vote
3 answers
pudb debugging with tensorflow argv
Hi I am running through the /models-master/tutorials/image/cifar10 examples provided by google at https://github.com/tensorflow/models.
I am running the tensorflow-1.0.1 and python 3.5 in a virtual env.
From the command line, and in the virtualenv,…

alphaXed
- 21
- 3
1
vote
1 answer
pudb3 - skip lines to next breakpoint in pudb
Say I'm in a code block and pressing n would mean the program ends, as the next line exits the program - how do I skip lines to the next breakpoint a few lines down?

category
- 2,113
- 2
- 22
- 46
1
vote
2 answers
Pudb source screen is squished, other screens are expanded (see screenshot)
Any solution to this? This happens in certain folders, not in every folder. Cannot figure out what causes this.
Worth mentioning that another c++ program is invoking the python script that has 'from pudb import set_trace' and 'set_trace()' in it.

auro
- 1,079
- 1
- 10
- 22
1
vote
2 answers
List/inspect the instance variables (self.xxx) while using pudb
I am trying to debug a python application using pudb, everything is fine and good except that it's not displaying the instance variables (which we access with self.xxx). It just displays 1 variable called self. And it's of the original class…

Codebender
- 14,221
- 7
- 48
- 85
1
vote
1 answer
How to show stack trace in pudb?
How do I see my stack trace in pudb? (i.e., the equivalent of the w / where command in the pdb Python debugger)
References:
pudb on PyPI
pudb source on github

Rob Bednark
- 25,981
- 23
- 80
- 125
1
vote
1 answer
Configuring pudb UI
When I start up pudb, it becomes a useable mess.
Most of the windows are ten-twenty characters big.
Every window is scrunched up against the left.
Even the help window is all scrunched up and so unreadable.
How can I adjust these parameters?
The…

Mouse.The.Lucky.Dog
- 735
- 8
- 16