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

Method do_args

tools/python-3.11.9-amd64/Lib/pdb.py:1203–1217  ·  view source on GitHub ↗

a(rgs) Print the argument list of the current function.

(self, arg)

Source from the content-addressed store, hash-verified

1201 return 1
1202
1203 def do_args(self, arg):
1204 """a(rgs)
1205 Print the argument list of the current function.
1206 """
1207 co = self.curframe.f_code
1208 dict = self.curframe_locals
1209 n = co.co_argcount + co.co_kwonlyargcount
1210 if co.co_flags & inspect.CO_VARARGS: n = n+1
1211 if co.co_flags & inspect.CO_VARKEYWORDS: n = n+1
1212 for i in range(n):
1213 name = co.co_varnames[i]
1214 if name in dict:
1215 self.message('%s = %s' % (name, self._safe_repr(dict[name], name)))
1216 else:
1217 self.message('%s = *** undefined ***' % (name,))
1218 do_a = do_args
1219
1220 def do_retval(self, arg):

Callers

nothing calls this directly

Calls 2

messageMethod · 0.95
_safe_reprMethod · 0.95

Tested by

no test coverage detected