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 09:30:25 +1300 Message-ID: <18310.32865.932216.835981@kahikatea.snap.net.nz> References: 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 1199997115 3885 80.91.229.12 (10 Jan 2008 20:31:55 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 10 Jan 2008 20:31:55 +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 Thu Jan 10 21:32:16 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 1JD44P-0002ay-08 for geh-help-gnu-emacs@m.gmane.org; Thu, 10 Jan 2008 21:32:09 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JD43y-00051f-Br for geh-help-gnu-emacs@m.gmane.org; Thu, 10 Jan 2008 15:31:42 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JD42s-0004CQ-Ha for help-gnu-emacs@gnu.org; Thu, 10 Jan 2008 15:30:34 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JD42q-0004B7-Lp for help-gnu-emacs@gnu.org; Thu, 10 Jan 2008 15:30:33 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JD42q-0004Av-EL for help-gnu-emacs@gnu.org; Thu, 10 Jan 2008 15:30:32 -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 1JD42q-00021A-G9 for help-gnu-emacs@gnu.org; Thu, 10 Jan 2008 15:30:32 -0500 Original-Received: from kahikatea.snap.net.nz (21.30.255.123.static.snap.net.nz [123.255.30.21]) by viper.snap.net.nz (Postfix) with ESMTP id 67EAC3DA3DA; Fri, 11 Jan 2008 09:30:28 +1300 (NZDT) Original-Received: by kahikatea.snap.net.nz (Postfix, from userid 1000) id 19BA08FC6D; Fri, 11 Jan 2008 09:30:26 +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:50641 Archived-At: > After inputting "M-x pdb", and then "python -m c:\python25\Lib\pdb.py > test.py", I got the following error message: This sets default-directory to c:/python25/Lib/ > <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< > Current directory is c:/python25/Lib/ > Traceback (most recent call last): > File "c:\python25\lib\runpy.py", line 85, in run_module > loader = get_loader(mod_name) > File "c:\python25\lib\pkgutil.py", line 456, in get_loader > return find_loader(fullname) > File "c:\python25\lib\pkgutil.py", line 466, in find_loader > for importer in iter_importers(fullname): > File "c:\python25\lib\pkgutil.py", line 422, in iter_importers > __import__(pkg) > ImportError: No module named c:/python25/Lib/pdb > > Debugger exited abnormally with code 255 > >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> > > 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 ? as the default name for gud-pdb-command-name is just "pdb". -- Nick http://www.inet.net.nz/~nickrob