MCPcopy Index your code
hub / github.com/python/cpython / show_variables

Method show_variables

Lib/idlelib/debugger.py:384–398  ·  view source on GitHub ↗
(self, force=0)

Source from the content-addressed store, hash-verified

382 self.show_variables()
383
384 def show_variables(self, force=0):
385 lv = self.localsviewer
386 gv = self.globalsviewer
387 frame = self.frame
388 if not frame:
389 ldict = gdict = None
390 else:
391 ldict = frame.f_locals
392 gdict = frame.f_globals
393 if lv and gv and ldict is gdict:
394 ldict = None
395 if lv:
396 lv.load_dict(ldict, force, self.pyshell.interp.rpcclt)
397 if gv:
398 gv.load_dict(gdict, force, self.pyshell.interp.rpcclt)
399
400 def set_breakpoint(self, filename, lineno):
401 """Set a filename-lineno breakpoint in the debugger.

Callers 4

interactionMethod · 0.95
show_frameMethod · 0.95
show_localsMethod · 0.95
show_globalsMethod · 0.95

Calls 1

load_dictMethod · 0.45

Tested by

no test coverage detected