MCPcopy Create free account
hub / github.com/fabioz/PyDev.Debugger / request_terminate_process

Method request_terminate_process

_pydevd_bundle/pydevd_api.py:1151–1161  ·  view source on GitHub ↗
(self, py_db)

Source from the content-addressed store, hash-verified

1149 self.terminate_process(py_db)
1150
1151 def request_terminate_process(self, py_db):
1152 if py_db.terminate_keyboard_interrupt:
1153 if not py_db.keyboard_interrupt_requested:
1154 py_db.keyboard_interrupt_requested = True
1155 interrupt_main_thread()
1156 return
1157
1158 # We mark with a terminate_requested to avoid that paused threads start running
1159 # (we should terminate as is without letting any paused thread run).
1160 py_db.terminate_requested = True
1161 run_as_pydevd_daemon_thread(py_db, self._terminate_if_commands_processed, py_db)
1162
1163 def setup_auto_reload_watcher(self, py_db, enable_auto_reload, watch_dirs, poll_target_time, exclude_patterns, include_patterns):
1164 py_db.setup_auto_reload_watcher(enable_auto_reload, watch_dirs, poll_target_time, exclude_patterns, include_patterns)

Callers 1

Calls 2

interrupt_main_threadFunction · 0.90

Tested by

no test coverage detected