Lines Matching refs:filename
29 def canonic(self, filename): argument
30 if filename == "<" + filename[1:-1] + ">":
31 return filename
32 canonic = self.fncache.get(filename)
34 canonic = os.path.abspath(filename)
36 self.fncache[filename] = canonic
127 filename = self.canonic(frame.f_code.co_filename)
128 if not filename in self.breaks:
131 if not lineno in self.breaks[filename]:
135 if not lineno in self.breaks[filename]:
139 (bp, flag) = effective(filename, lineno, frame)
251 def set_break(self, filename, lineno, temporary=0, cond = None, argument
253 filename = self.canonic(filename)
255 line = linecache.getline(filename, lineno)
257 return 'Line %s:%d does not exist' % (filename,
259 if not filename in self.breaks:
260 self.breaks[filename] = []
261 list = self.breaks[filename]
264 bp = Breakpoint(filename, lineno, temporary, cond, funcname)
266 def _prune_breaks(self, filename, lineno): argument
267 if (filename, lineno) not in Breakpoint.bplist:
268 self.breaks[filename].remove(lineno)
269 if not self.breaks[filename]:
270 del self.breaks[filename]
272 def clear_break(self, filename, lineno): argument
273 filename = self.canonic(filename)
274 if not filename in self.breaks:
275 return 'There are no breakpoints in %s' % filename
276 if lineno not in self.breaks[filename]:
277 return 'There is no breakpoint at %s:%d' % (filename,
281 for bp in Breakpoint.bplist[filename, lineno][:]:
283 self._prune_breaks(filename, lineno)
299 def clear_all_file_breaks(self, filename): argument
300 filename = self.canonic(filename)
301 if not filename in self.breaks:
302 return 'There are no breakpoints in %s' % filename
303 for line in self.breaks[filename]:
304 blist = Breakpoint.bplist[filename, line]
307 del self.breaks[filename]
317 def get_break(self, filename, lineno): argument
318 filename = self.canonic(filename)
319 return filename in self.breaks and \
320 lineno in self.breaks[filename]
322 def get_breaks(self, filename, lineno): argument
323 filename = self.canonic(filename)
324 return filename in self.breaks and \
325 lineno in self.breaks[filename] and \
326 Breakpoint.bplist[filename, lineno] or []
328 def get_file_breaks(self, filename): argument
329 filename = self.canonic(filename)
330 if filename in self.breaks:
331 return self.breaks[filename]
364 filename = self.canonic(frame.f_code.co_filename)
365 s = '%s(%r)' % (filename, lineno)
382 line = linecache.getline(filename, lineno, frame.f_globals)