emacs python debugging: pydb or pdb fringe interaction

P

Paul Rudin

I can't get the gdb fringe interaction functionality to work with
either pdb or pydb. Any hints as to versions or incantations I should
try?


I have the emacs22 from debian unstable emacs-snapshot-gtk package
fwiw.
 
R

Rob Wolfe

Paul Rudin said:
I can't get the gdb fringe interaction functionality to work with
either pdb or pydb. Any hints as to versions or incantations I should
try?

It works for me on Debian Etch and GNU Emacs 21.4.1.
I'm using this settings:

(setq pdb-path '/usr/lib/python2.4/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)))))
 
P

Paul Rudin

Rob Wolfe said:
It works for me on Debian Etch and GNU Emacs 21.4.1.
I'm using this settings:

(setq pdb-path '/usr/lib/python2.4/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)))))

Unfortunately this doesn't make any difference for me, with either
emacs 22 or 21. I guess I'll just have to dig deeper into the code.
 
R

Rob Wolfe

Paul Rudin said:
Unfortunately this doesn't make any difference for me, with either
emacs 22 or 21. I guess I'll just have to dig deeper into the code.

So what happens after M-x pdb?
 
P

Paul Rudin

Rob Wolfe said:
So what happens after M-x pdb?

Everything works as it should, except for the interaction with the
fringe. I can't set breakpoints by clicking in the fringe, and they're
not displayed in the fringe. The only thing that is displayed in the
fringe is the little triangle indicating the current line.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,780
Messages
2,569,611
Members
45,277
Latest member
VytoKetoReview

Latest Threads

Top