Fix by Edward K Ream to make breakpoints work on Windows: insert a

missing call to self.canonic().
This commit is contained in:
Guido van Rossum 2002-02-25 23:22:08 +00:00
parent bc64f7c6f3
commit 16ac99a959
1 changed files with 1 additions and 0 deletions

View File

@ -297,6 +297,7 @@ class Debugger(bdb.Bdb):
# A literal copy of Bdb.set_break() without the print statement at the end # A literal copy of Bdb.set_break() without the print statement at the end
def set_break(self, filename, lineno, temporary=0, cond = None): def set_break(self, filename, lineno, temporary=0, cond = None):
import linecache # Import as late as possible import linecache # Import as late as possible
filename = self.canonic(filename)
line = linecache.getline(filename, lineno) line = linecache.getline(filename, lineno)
if not line: if not line:
return 'That line does not exist!' return 'That line does not exist!'