[issue1786] pdb should set stdin+stdout around exec call

2008-01-15 Thread Guido van Rossum

Guido van Rossum added the comment:

Committed revision 59984 (2.6).
Decided not to backport this to 2.5.

--
resolution:  - fixed
status: open - closed
versions:  -Python 2.5

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1786
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1786] pdb should set stdin+stdout around exec call

2008-01-14 Thread Guido van Rossum

Guido van Rossum added the comment:

Here's an improved patch -- the recursive debugger invocation should
pass the I/O settings on.

--
assignee:  - gvanrossum
keywords: +easy
Added file: http://bugs.python.org/file9171/pdb.diff

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1786
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1786] pdb should set stdin+stdout around exec call

2008-01-10 Thread Guido van Rossum

New submission from Guido van Rossum:

When you type a command in pdb that happens to print something, the
output goes to sys.stdout, even if self.stdout references another file.
 This makes it hard to debug code running inside a web server where
sys.stdout/stdout are connected to a socket (or a WSGI wrapper file);
the output disappears and ends up messing up the response.

Attached is a fix that temporarily changes sys.stdin/stdout to the
debugger's input and output.  What do people think of this?

--
components: Library (Lib)
files: pdb.diff
messages: 59686
nosy: gvanrossum
priority: low
severity: normal
status: open
title: pdb should set stdin+stdout around exec call
type: behavior
versions: Python 2.5, Python 2.6, Python 3.0
Added file: http://bugs.python.org/file9120/pdb.diff

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1786
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1786] pdb should set stdin+stdout around exec call

2008-01-10 Thread Guido van Rossum

Changes by Guido van Rossum:


--
keywords: +patch

__
Tracker [EMAIL PROTECTED]
http://bugs.python.org/issue1786
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com