From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nick Roberts Newsgroups: gmane.emacs.help Subject: Re: Cannot run PDB properly in emacs 22.1.1 on windows-xp Date: Tue, 15 Jan 2008 00:55:52 +1300 Message-ID: <18315.19912.926633.362351@kahikatea.snap.net.nz> References: <69476064-a94f-43af-8a90-61fbf6087037@e23g2000prf.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1200311822 14018 80.91.229.12 (14 Jan 2008 11:57:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 14 Jan 2008 11:57:02 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: roc lee Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jan 14 12:57:23 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JENwQ-0004D6-N4 for geh-help-gnu-emacs@m.gmane.org; Mon, 14 Jan 2008 12:57:22 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JENw2-0000fl-Gy for geh-help-gnu-emacs@m.gmane.org; Mon, 14 Jan 2008 06:56:58 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JENvM-00004q-L0 for help-gnu-emacs@gnu.org; Mon, 14 Jan 2008 06:56:16 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JENvJ-0008PE-61 for help-gnu-emacs@gnu.org; Mon, 14 Jan 2008 06:56:16 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JENvJ-0008Ow-0G for help-gnu-emacs@gnu.org; Mon, 14 Jan 2008 06:56:13 -0500 Original-Received: from viper.snap.net.nz ([202.37.101.8]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JENvI-0001pc-HA for help-gnu-emacs@gnu.org; Mon, 14 Jan 2008 06:56:12 -0500 Original-Received: from kahikatea.snap.net.nz (71.31.255.123.static.snap.net.nz [123.255.31.71]) by viper.snap.net.nz (Postfix) with ESMTP id F37D43D8D5A; Tue, 15 Jan 2008 00:55:55 +1300 (NZDT) Original-Received: by kahikatea.snap.net.nz (Postfix, from userid 1000) id B16008FC6D; Tue, 15 Jan 2008 00:55:53 +1300 (NZDT) Original-Newsgroups: gnu.emacs.help In-Reply-To: <69476064-a94f-43af-8a90-61fbf6087037@e23g2000prf.googlegroups.com> X-Mailer: VM 7.19 under Emacs 23.0.50.29 X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:50707 Archived-At: > Today I found a topic, which gives a clean description about this: > http://www.gnu.org/software/emacs/windows/faq7.html#subproc-buffer > > The output of PDB is buffered (by python.exe, not emacs) and cannot > been displayed. > > Now it works with this command: > python -u -m pdb test.py > > -u : unbuffered binary stdout and stderr (also PYTHONUNBUFFERED=x) > see man page for details on internal buffering relating to '- > u' Perhaps then we should make the change below. Does this workd for you? Does it work for anybody else with Python on Windows? -- Nick http://www.inet.net.nz/~nickrob *************** and source-file directory for your debug *** 1622,1628 **** output)) ! (defcustom gud-pdb-command-name "pdb" "File name for executing the Python debugger. This should be an executable on your path, or an absolute file name." :type 'string --- 1622,1631 ---- output)) ! (defcustom gud-pdb-command-name ! (if (eq system-type 'windows-nt) ! "python -u -m pdb" ! "pdb") "File name for executing the Python debugger. This should be an executable on your path, or an absolute file name." :type 'string