M-x pdb fails

Bug #882083 reported by Andreas Roehler
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-mode.el
Fix Released
Medium
Andreas Roehler

Bug Description

without prior setup from other sources,

M-x pdb foo.py

fails while proposing an unusable recipe

pdb foo.py

OTOH http://www.emacswiki.org/emacs/PdbNotes contains a recipe for setup

PdbNotes

For running python in GdbMode you need to set the pdb-path variable in .emacs or wherever.

The advice defaults to the current buffer name when invoking M-x pdb, and comes from here:

http://lists.gnu.org/archive/html/help-gnu-emacs/2003-10/msg00577.html

The rest worked automagically in 22.2.1

 ;;pdb setup, note the python version
 (setq pdb-path '/usr/lib/python2.5/pdb.py
       gud-pdb-command-name (symbol-name pdb-path))
 (defadvice pdb (before gud-query-cmdline activate)
   "Provide a better default command line when called interactively."
   (interactive
    (list (gud-query-cmdline pdb-path
        (file-name-nondirectory buffer-file-name)))))

;;;;;;;;;;;;;

IMO python-mode should do that setup by itself.

Changed in python-mode:
assignee: nobody → Andreas Roehler (a-roehler)
milestone: none → 6.0.4
importance: Undecided → Medium
Changed in python-mode:
status: New → Fix Committed
Changed in python-mode:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.