MCPcopy Index your code
hub / github.com/fabioz/PyDev.Debugger / wait_for_commands

Method wait_for_commands

pydevd.py:2727–2748  ·  view source on GitHub ↗
(self, globals)

Source from the content-addressed store, hash-verified

2725 return globals
2726
2727 def wait_for_commands(self, globals):
2728 self._activate_gui_if_needed()
2729
2730 thread = threading.current_thread()
2731 from _pydevd_bundle import pydevd_frame_utils
2732
2733 frame = pydevd_frame_utils.Frame(
2734 None, -1, pydevd_frame_utils.FCode("Console", os.path.abspath(os.path.dirname(__file__))), globals, globals
2735 )
2736 thread_id = get_current_thread_id(thread)
2737 self.add_fake_frame(thread_id, id(frame), frame)
2738
2739 cmd = self.cmd_factory.make_show_console_message(self, thread_id, frame)
2740 if self.writer is not None:
2741 self.writer.add_command(cmd)
2742
2743 while True:
2744 if self.gui_in_use:
2745 # call input hooks if only GUI is in use
2746 self._call_input_hook()
2747 self.process_internal_commands()
2748 time.sleep(0.01)
2749
2750
2751class IDAPMessagesListener(object):

Callers 1

mainFunction · 0.95

Calls 7

add_fake_frameMethod · 0.95
_call_input_hookMethod · 0.95
get_current_thread_idFunction · 0.90
add_commandMethod · 0.45

Tested by

no test coverage detected