Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 16ac99a

Browse files
committed
Fix by Edward K Ream to make breakpoints work on Windows: insert a
missing call to self.canonic().
1 parent bc64f7c commit 16ac99a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Lib/idlelib/Debugger.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,7 @@ def set_breakpoint_here(self, edit):
297297
# A literal copy of Bdb.set_break() without the print statement at the end
298298
def set_break(self, filename, lineno, temporary=0, cond = None):
299299
import linecache # Import as late as possible
300+
filename = self.canonic(filename)
300301
line = linecache.getline(filename, lineno)
301302
if not line:
302303
return 'That line does not exist!'

0 commit comments

Comments
 (0)