From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: roc lee Newsgroups: gmane.emacs.help Subject: Re: Cannot run PDB properly in emacs 22.1.1 on windows-xp Date: Mon, 14 Jan 2008 02:53:20 -0800 (PST) Organization: http://groups.google.com Message-ID: <69476064-a94f-43af-8a90-61fbf6087037@e23g2000prf.googlegroups.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1200310858 10896 80.91.229.12 (14 Jan 2008 11:40:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 14 Jan 2008 11:40:58 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jan 14 12:41:20 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 1JENgm-00085r-Kq for geh-help-gnu-emacs@m.gmane.org; Mon, 14 Jan 2008 12:41:12 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JENgO-0003LA-Fn for geh-help-gnu-emacs@m.gmane.org; Mon, 14 Jan 2008 06:40:48 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!e23g2000prf.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 57 Original-NNTP-Posting-Host: 218.240.1.2 Original-X-Trace: posting.google.com 1200308000 21694 127.0.0.1 (14 Jan 2008 10:53:20 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Mon, 14 Jan 2008 10:53:20 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: e23g2000prf.googlegroups.com; posting-host=218.240.1.2; posting-account=TbhHLwoAAAD6xsCvC9eVlynZFJ7J_7cf User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; Maxthon; .NET CLR 1.1.4322; .NET CLR 2.0.50727),gzip(gfe),gzip(gfe) Original-Xref: shelby.stanford.edu gnu.emacs.help:155295 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:50706 Archived-At: On 1=D4=C211=C8=D5, =CF=C2=CE=E76=CA=B159=B7=D6, Nick Roberts wrote: > That's because there isn't a file calledpdbin your path that points to > c:\python25/Lib/pdb.py (I don't if symbolic links exist in windows-xp). > > But you haven't answered my question or tried my other suggestions. Thank you for your help. I have tried all the method you suggested :) I can have the PDB worked. I just cannot have it done this interactively. I mean, the debug message was not displayed immediately when the debug command was inputted, but was thrown out all together after the "q" was given.: <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< Current directory is c:/ l n c q > c:\test.py(1)() -> i =3D 1 (Pdb) 1 -> i =3D 1 [EOF] (Pdb) --Return-- > c:\test.py(1)()->None -> i =3D 1 (Pdb) The program finished and will be restarted > c:\test.py(1)() -> i =3D 1 (Pdb) Debugger finished >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> 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=3Dx) see man page for details on internal buffering relating to '- u' Many thanks to you, to Thierry Volpiatto, to Eli Zaretskii. Thank you for your kindly help :) > > -- > Nick http://www.inet.net.nz/~nick= rob