* gud with pdb (python) fails to set breakpoint on files other than the main module
@ 2007-10-02 2:07 Adam Hupp
2007-10-02 11:23 ` Nick Roberts
0 siblings, 1 reply; 2+ messages in thread
From: Adam Hupp @ 2007-10-02 2:07 UTC (permalink / raw)
To: bug-gnu-emacs
When using pdb in emacs (via gud), setting a breakpoint on a file
other than the main module causes the breakpoint to be added to main
module at that line instead of the current module.
Reproduce:
1) Run M-x pdb on a script A.py that imports another module B.py
2) Open B.py and add a breakpoint. The breakpoint is added at that
line in A.py.
The problem is that the 'break' command does not specify the current file:
(gud-def gud-break "break %l" "\C-b" "Set breakpoint at current line.")
should be:
(gud-def gud-break "break %f:%l" "\C-b" "Set breakpoint at current line.")
Note the addition of the '%f" specifier.
--
Adam Hupp | http://hupp.org/adam/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-10-02 11:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-02 2:07 gud with pdb (python) fails to set breakpoint on files other than the main module Adam Hupp
2007-10-02 11:23 ` Nick Roberts
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.