From: Jeremy Whitlock <jcscoobyrs@gmail.com>
To: 5653@debbugs.gnu.org
Cc: Chong Yidong <cyd@stupidchicken.com>
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 [thread overview]
Message-ID: <A8A281DA-F64F-4F84-84EF-33185747960E@gmail.com> (raw)
In-Reply-To: <87sk8nil35.fsf@stupidchicken.com>
> 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 = 'emacs'
pdb.set_trace()
print('My favorite editor is %s!' % editor)
# editor_war
if __name__ == '__main__':
editor_war()
4) Start pdb (M-x pdb <RET> 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)<module>()
-> 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 <jcscoobyrs@gmail.com>
http://www.thoughtspark.org
next prev parent reply other threads:[~2010-03-01 23:46 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-26 21:09 bug#5653: 23.1; pdbtrack isn't parsing valid pdb output or creating an interactive debugging buffer (python.el) Jeremy Whitlock
2010-02-27 0:22 ` Chong Yidong
2010-03-01 23:46 ` Jeremy Whitlock [this message]
2010-04-10 1:11 ` Jeremy Whitlock
2010-04-10 1:30 ` Jeremy Whitlock
2010-05-10 17:03 ` Jeremy Whitlock
2010-05-10 20:52 ` Chong Yidong
2010-05-10 20:54 ` Jeremy Whitlock
2011-03-29 17:45 ` bug#5653: gud.el / How To fix pdb in Emacs on Mac OS X (solution) Markus Heiser
2011-06-27 21:38 ` Chong Yidong
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=A8A281DA-F64F-4F84-84EF-33185747960E@gmail.com \
--to=jcscoobyrs@gmail.com \
--cc=5653@debbugs.gnu.org \
--cc=cyd@stupidchicken.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.