def effective(file, line, frame):
 possibles = Breakpoint.bplist[(file, line)]
 for i in range(0, len(possibles)):
  b = possibles[i]
  if (b.enabled == 0):
   continue
  if (not checkfuncname(b, frame)):
   continue
  b.hits = (b.hits + 1)
  if (not b.cond):
   if (b.ignore > 0):
    b.ignore = (b.ignore - 1)
    continue
   else:
    return (b, 1)
  else:
   try:
    val = eval(b.cond, frame.f_globals, frame.f_locals)
    if val:
     if (b.ignore > 0):
      b.ignore = (b.ignore - 1)
     else:
      return (b, 1)
   except:
    return (b, 0)
 return (None, None)

def effective ( file , line , frame ) : possibles = Breakpoint . bplist [ ( file , line ) ] for i in range ( 0 , len ( possibles ) ) : b = possibles [ i ] if ( b . enabled == 0 ) : continue if ( not checkfuncname ( b , frame ) ) : continue b . hits = ( b . hits + 1 ) if ( not b . cond ) : if ( b . ignore > 0 ) : b . ignore = ( b . ignore - 1 ) continue else : return ( b , 1 ) else : try : val = eval ( b . cond , frame . f_globals , frame . f_locals ) if val : if ( b . ignore > 0 ) : b . ignore = ( b . ignore - 1 ) else : return ( b , 1 ) except : return ( b , 0 ) return ( None , None )
determine which breakpoint for this file:line is to be acted upon .