MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / user_line

Method user_line

tools/python-3.11.9-amd64/Lib/bdb.py:869–875  ·  view source on GitHub ↗
(self, frame)

Source from the content-addressed store, hash-verified

867 if not name: name = '???'
868 print('+++ call', name, args)
869 def user_line(self, frame):
870 import linecache
871 name = frame.f_code.co_name
872 if not name: name = '???'
873 fn = self.canonic(frame.f_code.co_filename)
874 line = linecache.getline(fn, frame.f_lineno, frame.f_globals)
875 print('+++', fn, frame.f_lineno, name, ':', line.strip())
876 def user_return(self, frame, retval):
877 print('+++ return', retval)
878 def user_exception(self, frame, exc_stuff):

Callers

nothing calls this directly

Calls 4

canonicMethod · 0.80
stripMethod · 0.80
printFunction · 0.50
getlineMethod · 0.45

Tested by

no test coverage detected