Lines Matching refs:lineno
226 lineno = frame.f_lineno
227 if lineno not in self.breaks[filename]:
230 lineno = frame.f_code.co_firstlineno
231 if lineno not in self.breaks[filename]:
235 (bp, flag) = effective(filename, lineno, frame)
292 def set_until(self, frame, lineno=None):
293 """Stop when the line with the lineno greater than the current one is
296 if lineno is None:
297 lineno = frame.f_lineno + 1
298 self._set_stopinfo(frame, frame, lineno)
366 # Set_break prints out the breakpoint line and file:lineno.
370 def _add_to_breaks(self, filename, lineno):
373 if lineno not in bp_linenos:
374 bp_linenos.append(lineno)
376 def set_break(self, filename, lineno, temporary=False, cond=None,
378 """Set a new breakpoint for filename:lineno.
380 If lineno doesn't exist for the filename, return an error message.
385 line = linecache.getline(filename, lineno)
387 return 'Line %s:%d does not exist' % (filename, lineno)
388 self._add_to_breaks(filename, lineno)
389 bp = Breakpoint(filename, lineno, temporary, cond, funcname)
400 for (filename, lineno) in Breakpoint.bplist.keys():
401 self._add_to_breaks(filename, lineno)
403 def _prune_breaks(self, filename, lineno):
404 """Prune breakpoints for filename:lineno.
411 if (filename, lineno) not in Breakpoint.bplist:
412 self.breaks[filename].remove(lineno)
416 def clear_break(self, filename, lineno):
417 """Delete breakpoints for filename:lineno.
424 if lineno not in self.breaks[filename]:
425 return 'There is no breakpoint at %s:%d' % (filename, lineno)
428 for bp in Breakpoint.bplist[filename, lineno][:]:
430 self._prune_breaks(filename, lineno)
494 def get_break(self, filename, lineno):
495 """Return True if there is a breakpoint for filename:lineno."""
498 lineno in self.breaks[filename]
500 def get_breaks(self, filename, lineno):
501 """Return all breakpoints for filename:lineno.
507 lineno in self.breaks[filename] and \
508 Breakpoint.bplist[filename, lineno] or []
529 """Return a list of (frame, lineno) in a stack trace and a size.
554 The stack entry frame_lineno is a (frame, lineno) tuple. The
561 frame, lineno = frame_lineno
563 s = '%s(%r)' % (filename, lineno)
573 if lineno is not None:
574 line = linecache.getline(filename, lineno, frame.f_globals)
578 s += f'{lprefix}Warning: lineno is None'
679 bplist = {} # indexed by (file, lineno) tuple