(self, globals)
| 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 | |
| 2751 | class IDAPMessagesListener(object): |
no test coverage detected