pdbtrack is broken
Bug #857003 reported by
Barry Warsaw
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
python-mode.el |
Fix Released
|
Medium
|
Andreas Roehler |
Bug Description
Add this to a line of your code:
import pdb; pdb.set_trace()
Now run it from a shell buffer. When you hit the breakpoint, pdbtrack should kick in but instead you get:
pdbtrack: Traceback cue not found
I'm using Python 2.7
Changed in python-mode: | |
assignee: | nobody → Andreas Roehler (a-roehler) |
Changed in python-mode: | |
milestone: | none → 6.0.3 |
importance: | Undecided → Medium |
status: | New → Fix Committed |
Changed in python-mode: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Hi Barry,
using this daily, didn't notice such a bug neither with Emacs-24... nor Emacs-23... .
The following script pdbtrack.py
#############
#! /usr/bin/env python
# -*- coding: utf-8 -*-
import pdb
pdb.set_trace()
news = "pdbtrack is broken python-mode.el, lp:857003"
print "news: %s " % news
#############
prints nicely:
(Pdb) s pdbtrack. py(9)<module> ()
> MY_PATH/
-> print "news: %s " % news
(Pdb) p news
'pdbtrack is broken python-mode.el, lp:857003'
(Pdb)
############
send you extract of M-x describe-mode below
Please send output from
Emacs -Q, M-x report-emacs-bug
should you need further investigation.
Cheers,
Andreas
############
(Information about these minor modes follows the major mode info.)
Python mode defined in `python-mode.el':
Major mode for editing Python files.
To submit a problem report, enter `C-c C-b' from a
`python-mode' buffer. Do `C-c ?' for detailed
documentation. To see what version of `python-mode' you are running,
enter `C-c C-v'.
This mode knows about Python indentation, tokens, comments and
continuation lines. Paragraphs are separated by blank lines only.
COMMANDS
key binding
--- -------
C-c Prefix Command and-indent parentized- in-singlequoted -atpt python- expression- atpt expression- atpt delete- backwards backspace and-indent
C-j py-newline-
C-x Prefix Command
ESC Prefix Command
# py-electric-comment
% py-match-paren
: py-electric-colon
s-TAB ar-count-
s-S hs-show-all
s-f ar-forward-
s-o zu-indent
s-q ar-python-
s-s hs-hide-all
s-ß py-expression-atpt
<C-backspace> py-hungry-
<backspace> py-electric-
<delete> py-electric-delete
<return> py-newline-
<s-backspace> ar-py-outdent-line
C-x n Prefix Command
C-M-a py-beginning- of-def- or-class of-def- or-class def-or- class def-or- class of-statement
C-M-e py-end-
C-M-h py-mark-
C-M-x py-execute-
M-n py-end-of-statement
M-p py-beginning-
C-c C-a py-mark-statement bug-report toggle- stack-tracking block-or- clause import- or-reload of-statement of-block line-outmost indent- offset indentation
C-c C-b py-submit-
C-c C-c py-execute-buffer
C-c C-d py-pdbtrack-
C-c C-e py-describe-symbol
C-c C-f py-sort-imports
C-c C-k py-mark-
C-c C-l py-shift-left
C-c RET py-execute-
C-c C-n py-end-of-statement
C-c C-p py-beginning-
C-c C-q py-end-of-block
C-c C-r py-shift-right
C-c C-s py-execute-string
C-c C-t py-toggle-shells
C-c C-u py-beginning-
C-c C-v py-version
C-c C-w py-pychecker-run
C-c ! py-shell
C-c # py-comment-region
C-c - py-up-exception
C-c / py-indent-
C-c : py-guess-
C-c < py-shift-left
C-c = py-down-exception
C-c > py-shift-right
C-c ? py-describe-mode
C-c c py-compute-
C-c p druck
C-c | py-execute-region
C-c <delete> py-...