Fix by Edward K Ream to make breakpoints work on Windows: insert a
missing call to self.canonic().
This commit is contained in:
parent
bc64f7c6f3
commit
16ac99a959
|
@ -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!'
|
||||||
|
|
Loading…
Reference in New Issue