From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Thierry Volpiatto Newsgroups: gmane.emacs.help Subject: Re: Cannot run PDB properly in emacs 22.1.1 on windows-xp Date: Fri, 11 Jan 2008 14:03:19 +0100 Message-ID: <87r6goikfc.fsf@thievol.homelinux.org> References: <18311.19503.722256.795837@kahikatea.snap.net.nz> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1200056207 5600 80.91.229.12 (11 Jan 2008 12:56:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 11 Jan 2008 12:56:47 +0000 (UTC) Cc: roc lee , help-gnu-emacs@gnu.org To: Nick Roberts Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jan 11 13:57:09 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 1JDJRa-00037Z-3z for geh-help-gnu-emacs@m.gmane.org; Fri, 11 Jan 2008 13:57:06 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JDJRC-0005bS-FH for geh-help-gnu-emacs@m.gmane.org; Fri, 11 Jan 2008 07:56:42 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JDJQv-0005Zd-Ku for help-gnu-emacs@gnu.org; Fri, 11 Jan 2008 07:56:25 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JDJQu-0005Y6-GV for help-gnu-emacs@gnu.org; Fri, 11 Jan 2008 07:56:24 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JDJQu-0005Y3-96 for help-gnu-emacs@gnu.org; Fri, 11 Jan 2008 07:56:24 -0500 Original-Received: from fg-out-1718.google.com ([72.14.220.152]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JDJQt-000649-Qo for help-gnu-emacs@gnu.org; Fri, 11 Jan 2008 07:56:24 -0500 Original-Received: by fg-out-1718.google.com with SMTP id d23so1753107fga.30 for ; Fri, 11 Jan 2008 04:56:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:references:date:in-reply-to:message-id:user-agent:mime-version:content-type; bh=jWAy/eRug4e2C5gtYh+DiVyPvE0Xxyw1CJEgbghYY68=; b=FnvG96PHDs7mJiBmAWoLxj5A/BdimnDB4fhoN4NZTx+722Jl9amNhSFP4ZCex8aoTwOAKiNOMul20B14HbIeRAhujAyNDpiMRb2YpbR51e7Q42AC9zNGDlR50R3UO+LULijbKEj/DNnwKoW6yJs2x2HVF7toCxWbZwwuIfJd+yE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:references:date:in-reply-to:message-id:user-agent:mime-version:content-type; b=KzPw3VZauqQezNSwI8rxKl/2FjjkRpO8Rd2RMxwbTSfcyLGPrNQr0JwjLhSD37cC3lzLV+l+QH/WXhh5XOTHbeYzfCwTJ1znXZfcBS1Kh9pA8LmTfhTSoxMpVA2Vo5zuRggU6ZPKIFV3ABg7p6glqGC1J8sVuGbWv3ftETMRNhE= Original-Received: by 10.82.162.14 with SMTP id k14mr5198826bue.32.1200056182279; Fri, 11 Jan 2008 04:56:22 -0800 (PST) Original-Received: from thievol.homelinux.org ( [78.114.18.34]) by mx.google.com with ESMTPS id w5sm9229134mue.2.2008.01.11.04.56.19 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 11 Jan 2008 04:56:21 -0800 (PST) In-Reply-To: <18311.19503.722256.795837@kahikatea.snap.net.nz> (Nick Roberts's message of "Fri, 11 Jan 2008 23:59:59 +1300") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) 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:50652 Archived-At: Nick Roberts writes: > 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. Did you set the path to pdb.py ? (setq gud-pdb-command-name "~/bin/pdb.py") Have you gdb installed on your system ? > 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. -- A + Thierry Pub key: http://pgp.mit.edu