468,241 Members | 1,416 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,241 developers. It's quick & easy.

emacs python debugging: pydb or pdb fringe interaction


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.

May 18 '07 #1
4 2512
Paul Rudin <pa********@ntlworld.comwrites:
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)))))
--
HTH,
Rob
May 18 '07 #2
Rob Wolfe <rw@smsnet.plwrites:
Paul Rudin <pa********@ntlworld.comwrites:
>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)))))
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.
May 18 '07 #3
Paul Rudin <pa********@ntlworld.comwrites:
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?

May 18 '07 #4
Rob Wolfe <rw@smsnet.plwrites:
Paul Rudin <pa********@ntlworld.comwrites:
>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?
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.
May 18 '07 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

81 posts views Thread by julio | last post: by
2 posts views Thread by Gary Wessle | last post: by
6 posts views Thread by LorcanM | last post: by
4 posts views Thread by emin.shopper | last post: by
5 posts views Thread by Rotem | last post: by
5 posts views Thread by levander | last post: by
1 post views Thread by Dan Stromberg - Datallegro | last post: by
4 posts views Thread by Richard Szopa | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.