mirror of
				https://github.com/python/cpython.git
				synced 2025-11-03 19:34:08 +00:00 
			
		
		
		
	Fix by Edward K Ream to make breakpoints work on Windows: insert a
missing call to self.canonic().
This commit is contained in:
		
							parent
							
								
									b6b2aa6c75
								
							
						
					
					
						commit
						30efbccee4
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
					@ -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…
	
	Add table
		Add a link
		
	
		Reference in a new issue