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: Thu, 10 Jan 2008 23:00:39 -0800 (PST) Organization: http://groups.google.com Message-ID: 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 1200037364 9272 80.91.229.12 (11 Jan 2008 07:42:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 11 Jan 2008 07:42:44 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jan 11 08:43:06 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 1JDEXh-00005O-GM for geh-help-gnu-emacs@m.gmane.org; Fri, 11 Jan 2008 08:43:05 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JDEXJ-0001NJ-PJ for geh-help-gnu-emacs@m.gmane.org; Fri, 11 Jan 2008 02:42:41 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!q77g2000hsh.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 59 Original-NNTP-Posting-Host: 218.240.1.2 Original-X-Trace: posting.google.com 1200034840 25847 127.0.0.1 (11 Jan 2008 07:00:40 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Fri, 11 Jan 2008 07:00:40 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: q77g2000hsh.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:155233 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:50649 Archived-At: On 1=D4=C211=C8=D5, =C9=CF=CE=E74=CA=B130=B7=D6, 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. > > ? > > as the default name for gud-pdb-command-name is just "pdb". > > -- > Nick http://www.inet.net.nz/~nick= rob