From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jeremy Whitlock Newsgroups: gmane.emacs.bugs Subject: bug#5653: 23.1; pdbtrack isn't parsing valid pdb output or creating an interactive debugging buffer (python.el) Date: Mon, 1 Mar 2010 16:46:03 -0700 Message-ID: References: <87sk8nil35.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1077) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1267487683 28306 80.91.229.12 (1 Mar 2010 23:54:43 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 1 Mar 2010 23:54:43 +0000 (UTC) Cc: Chong Yidong To: 5653@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Mar 02 00:54:39 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1NmFRe-0002i3-Sd for geb-bug-gnu-emacs@m.gmane.org; Tue, 02 Mar 2010 00:54:39 +0100 Original-Received: from localhost ([127.0.0.1]:45230 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NmFRd-0001t3-PE for geb-bug-gnu-emacs@m.gmane.org; Mon, 01 Mar 2010 18:54:37 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NmFRA-0001Ri-UY for bug-gnu-emacs@gnu.org; Mon, 01 Mar 2010 18:54:09 -0500 Original-Received: from [140.186.70.92] (port=55726 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NmFR9-0001QE-JZ for bug-gnu-emacs@gnu.org; Mon, 01 Mar 2010 18:54:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NmFR7-0001hu-Bw for bug-gnu-emacs@gnu.org; Mon, 01 Mar 2010 18:54:07 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:46876) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NmFR7-0001ho-9y for bug-gnu-emacs@gnu.org; Mon, 01 Mar 2010 18:54:05 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1NmFKI-0002Yt-18; Mon, 01 Mar 2010 18:47:02 -0500 X-Loop: bug-gnu-emacs@gnu.org Resent-From: Jeremy Whitlock Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 01 Mar 2010 23:47:01 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org X-Emacs-PR-Message: followup 5653 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 5653-submit@debbugs.gnu.org id=B5653.12674871789820 (code B ref 5653); Mon, 01 Mar 2010 23:47:01 +0000 Original-Received: (at 5653) by debbugs.gnu.org; 1 Mar 2010 23:46:18 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NmFJZ-0002YL-Ja for submit@debbugs.gnu.org; Mon, 01 Mar 2010 18:46:17 -0500 Original-Received: from mail-pv0-f172.google.com ([74.125.83.172]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NmFJX-0002Y8-5S for 5653@debbugs.gnu.org; Mon, 01 Mar 2010 18:46:15 -0500 Original-Received: by pvg2 with SMTP id 2so937289pvg.3 for <5653@debbugs.gnu.org>; Mon, 01 Mar 2010 15:46:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:mime-version :content-type:from:in-reply-to:date:cc:content-transfer-encoding :message-id:references:to:x-mailer; bh=5izI+Nbd9RAsMFMjlAJCM8xrw0mJZ2CIbWkRMJ5vY6U=; b=Ufop0X0iERHwQGhOxRvtALN82p26o3Ss3p4Th0sBhHxd3NuhCZ4w5XqNNW/Qh63End BvXVHqGjZf9V9NVhuh5kTUoWBBksmAB6gtuiPAlBB5ScOq3vdyxwiFyp6WcDvvViY5O+ IsMjvrbu9yCjAR5PxTxsMLWRKGSyUA7TXeCLc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; b=ogJZtFn5Mpjx8qiCzyfOtgakqOhfBfTNDW8ZXv0qZ6Gj15AAypxfGS7+vDsqMkxnDK JO5w6BdEnS6t7/0gdArvluNvXcqiULhBHFP/NdRKfRQWSP2Ohw1ng0nTkY4dJMZ2LAdf wkKDJkFhLd+Mobs4NsWNFDERiGWYSdDffWY4g= Original-Received: by 10.142.60.11 with SMTP id i11mr3005699wfa.90.1267487169486; Mon, 01 Mar 2010 15:46:09 -0800 (PST) Original-Received: from ?192.168.0.10? (71-212-153-66.hlrn.qwest.net [71.212.153.66]) by mx.google.com with ESMTPS id 23sm4129421pzk.14.2010.03.01.15.46.05 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 01 Mar 2010 15:46:07 -0800 (PST) In-Reply-To: <87sk8nil35.fsf@stupidchicken.com> X-Mailer: Apple Mail (2.1077) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Mon, 01 Mar 2010 18:47:02 -0500 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:35378 Archived-At: > I can't reproduce this. Could you attach a sample hello world type > Python program, and a set of precise step-by-step instructions to > reproduce the bug, starting with `emacs -Q'? Thanks. Step by step instructions --------------------------------- 1) Open emacs 2) Open a new file for editing (C-x C-f /tmp/test.py) 3) Input the following content: import pdb def editor_war(): """ Print out your favorite text editor. """ editor =3D 'emacs' pdb.set_trace() print('My favorite editor is %s!' % editor) # editor_war if __name__ =3D=3D '__main__': editor_war() 4) Start pdb (M-x pdb pdb test.py) With the given environment (Emacs 23.1.1, Python 2.6.1 and OS X 10.6.2), = the pdb buffer (*gud-test.py*) gets created and displays "Current = directory is /tmp/" with no interpreter or anything like that. If I = were to go through the exact same process in Emacs 22.1.1, the new pdb = buffer (*gud-test.py*) would show the same "Current directory is /tmp/" = but would then show me an interactive pdb prompt that has stopped = execution at line 1. Here is that buffer's output: Current directory is /tmp/ > /private/tmp/test.py(1)() -> import pdb (Pdb) What also happens is my editing buffer for test.py is brought up and the = debugging indicator shows up on line one. I haven't had time to look = into the Emacs code to deliver a patch for this but since the next step = is proliferating the reproduction steps, I figured that would be a good = start. I'll look into the sources and see if I can't whip up a patch. = In the mean time, let me know if there is more information I can provide = and/or if you've gotten a solution. Jeremy Whitlock http://www.thoughtspark.org