summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2002-02-25 23:16:45 (GMT)
committerGuido van Rossum <guido@python.org>2002-02-25 23:16:45 (GMT)
commit82953b1f843c8166b75dcf95c0556c0611cae1b6 (patch)
treeb8ff80115b3ff8f642b7b04d00a2b3211fe585b9
parentb38f188f348d57f07bb71dfc7789bc14cd2d4140 (diff)
downloadcpython-82953b1f843c8166b75dcf95c0556c0611cae1b6.zip
cpython-82953b1f843c8166b75dcf95c0556c0611cae1b6.tar.gz
cpython-82953b1f843c8166b75dcf95c0556c0611cae1b6.tar.bz2
Backport of a useful trunk fix:
Fix by Edward K Ream to make breakpoints work on Windows: insert a missing call to self.canonic().
-rw-r--r--Tools/idle/Debugger.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Tools/idle/Debugger.py b/Tools/idle/Debugger.py
index e4591ff..949a0f8 100644
--- a/Tools/idle/Debugger.py
+++ b/Tools/idle/Debugger.py
@@ -297,6 +297,7 @@ class Debugger(bdb.Bdb):
# A literal copy of Bdb.set_break() without the print statement at the end
def set_break(self, filename, lineno, temporary=0, cond = None):
import linecache # Import as late as possible
+ filename = self.canonic(filename)
line = linecache.getline(filename, lineno)
if not line:
return 'That line does not exist!'