best way to deal with python pdb flakiness re/stdout?
        Posted  
        
            by YGA
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by YGA
        
        
        
        Published on 2009-12-24T20:28:52Z
        Indexed on 
            2010/04/13
            23:53 UTC
        
        
        Read the original article
        Hit count: 534
        
python
|pdb-python
I love python and hate the pdb debugger.
For instance, if I have a program where stdout is redirected, my pdb prompts all go to the redirection, because the library was written to write to stdout.
Oftentimes this problem is subtle, causing me to think a program is hanging when it's really waiting for input.
How do people work around this? (Unfortunately, using other debuggers like winpdb is not an option).
Thanks, /YGA
© Stack Overflow or respective owner