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: Fri, 11 Jan 2008 23:59:59 +1300 Message-ID: <18311.19503.722256.795837@kahikatea.snap.net.nz> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-2022-jp Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1200049264 14465 80.91.229.12 (11 Jan 2008 11:01:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 11 Jan 2008 11:01:04 +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 Fri Jan 11 12:01:24 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 1JDHdY-0006DW-I8 for geh-help-gnu-emacs@m.gmane.org; Fri, 11 Jan 2008 12:01:20 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JDHdA-0000eJ-PK for geh-help-gnu-emacs@m.gmane.org; Fri, 11 Jan 2008 06:00:56 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JDHcS-0008Vw-R4 for help-gnu-emacs@gnu.org; Fri, 11 Jan 2008 06:00:12 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JDHcR-0008TZ-86 for help-gnu-emacs@gnu.org; Fri, 11 Jan 2008 06:00:11 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JDHcR-0008TM-1a for help-gnu-emacs@gnu.org; Fri, 11 Jan 2008 06:00:11 -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 1JDHcQ-0001sO-BW for help-gnu-emacs@gnu.org; Fri, 11 Jan 2008 06:00:10 -0500 Original-Received: from kahikatea.snap.net.nz (109.31.255.123.static.snap.net.nz [123.255.31.109]) by viper.snap.net.nz (Postfix) with ESMTP id E51223DA533; Sat, 12 Jan 2008 00:00:04 +1300 (NZDT) Original-Received: by kahikatea.snap.net.nz (Postfix, from userid 1000) id F39648FC6D; Sat, 12 Jan 2008 00:00:00 +1300 (NZDT) Original-Newsgroups: gnu.emacs.help In-Reply-To: X-Mailer: VM 7.19 under Emacs 23.0.50.27 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:50651 Archived-At: roc lee writes: > On 1$ATB(B11$AHU(B, $AIONg(B4$AJ1(B30$A7V(B, Nick Roberts wrote: > > > If the command line was "python -m pdb test.py", as sugested, > > > the message should be: > > > > Where does it suggest this? > > > > > > > > > The debug message was not displayed immediately when the debug command > > > was inputted, but was thrown out all together after the "q" was given. > > > > > > Using "python c:\python25/Lib/pdb.py test.py", I got: > > > > > > <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< > > > Current directory is c:/python25/Lib/ > > > Error: test.py does not exist > > > > default-directory is set to c:/python25/Lib from your previous attempt. > > Specifying the path to test.py should work: > > > > python c:\python25/Lib/pdb.py c:/yourpath/to/test.py > > > > If you don't specify the path to test.py you need to make sure that > > default-directory is the directory test.py is in, e.g., by doing M-x dired > > in that directory first. > > > > Why not just do: > > > > pdb c:/yourpath/to/test.py > > or > > pdb test.py > > Thank you for your response. > > But my emacs cannot execute such commands: > "apply: Searching for program: no such file or directory, pdb" > > I copied "pdb.pyc" and "pdb.py" to "c:\Python25\". > > Running "pdb.pyc test.py", the response was: > apply: Searching for program: no such file or directory, pdb.pyc > > Running "c:\python25\Lib\pdb.pyc test.py", the response was: > "apply: Spawning child process: invalid argument" > > With "pdb.py", I got the same result. That's because there isn't a file called pdb in 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. -- Nick http://www.inet.net.nz/~nickrob