By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,222 Members | 2,416 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,222 IT Pros & Developers. It's quick & easy.

emacs python debugging: pydb or pdb fringe interaction

P: n/a

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
Share this Question
Share on Google+
4 Replies


P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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.