[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gud with pdb (python) fails to set breakpoint on files other than the ma
From: |
Adam Hupp |
Subject: |
gud with pdb (python) fails to set breakpoint on files other than the main module |
Date: |
Mon, 1 Oct 2007 22:07:39 -0400 |
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/
- gud with pdb (python) fails to set breakpoint on files other than the main module,
Adam Hupp <=