MCPcopy Index your code
hub / github.com/PySimpleGUI/PySimpleGUI / show_debugger_window

Function show_debugger_window

PySimpleGUI/PySimpleGUI.py:24175–24197  ·  view source on GitHub ↗

Shows the large main debugger window :param location: Locations (x,y) on the screen to place upper left corner of the window :type location: (int, int) :return: None :rtype: None

(location=(None, None), *args)

Source from the content-addressed store, hash-verified

24173
24174
24175def show_debugger_window(location=(None, None), *args):
24176 """
24177 Shows the large main debugger window
24178 :param location: Locations (x,y) on the screen to place upper left corner of the window
24179 :type location: (int, int)
24180 :return: None
24181 :rtype: None
24182 """
24183 if _Debugger.debugger is None:
24184 _Debugger.debugger = _Debugger()
24185 debugger = _Debugger.debugger
24186 frame = inspect.currentframe()
24187 prev_frame = inspect.currentframe().f_back
24188 # frame, *others = inspect.stack()[1]
24189 try:
24190 debugger.locals = frame.f_back.f_locals
24191 debugger.globals = frame.f_back.f_globals
24192 finally:
24193 del frame
24194
24195 if not debugger.watcher_window:
24196 debugger.watcher_window = debugger._build_main_debugger_window(location=location)
24197 return True
24198
24199
24200def show_debugger_popout_window(location=(None, None), *args):

Callers 2

mainFunction · 0.85

Calls 2

_DebuggerClass · 0.85

Tested by

no test coverage detected