def list_breakpoints():
 breakpoints = []
 ok = False
 try:
  filename = os.path.join(request.env['applications_parent'], 'applications', request.vars.filename)
  filename = os.path.normpath(os.path.normcase(filename))
  for bp in dbg_debugger.do_list_breakpoint():
   (no, bp_filename, bp_lineno, temporary, enabled, hits, cond) = bp
   bp_filename = os.path.normpath(os.path.normcase(bp_filename))
   if (filename == bp_filename):
    breakpoints.append(bp_lineno)
  ok = True
 except Exception as e:
  session.flash = str(e)
 return response.json({'ok': ok, 'breakpoints': breakpoints})

def list_breakpoints ( ) : breakpoints = [ ] ok = False try : filename = os . path . join ( request . env [ 'applications_parent' ] , 'applications' , request . vars . filename ) filename = os . path . normpath ( os . path . normcase ( filename ) ) for bp in dbg_debugger . do_list_breakpoint ( ) : ( no , bp_filename , bp_lineno , temporary , enabled , hits , cond ) = bp bp_filename = os . path . normpath ( os . path . normcase ( bp_filename ) ) if ( filename == bp_filename ) : breakpoints . append ( bp_lineno ) ok = True except Exception as e : session . flash = str ( e ) return response . json ( { 'ok' : ok , 'breakpoints' : breakpoints } )
return a list of linenumbers for current breakpoints .