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

Function _on_forked_process

_pydev_bundle/pydev_monkey.py:230–240  ·  view source on GitHub ↗
(setup_tracing=True)

Source from the content-addressed store, hash-verified

228
229
230def _on_forked_process(setup_tracing=True):
231 pydevd_constants.after_fork()
232 pydev_log.initialize_debug_stream(reinitialize=True)
233
234 if setup_tracing:
235 pydev_log.debug("pydevd on forked process: %s", os.getpid())
236
237 import pydevd
238
239 pydevd.threadingCurrentThread().__pydevd_main_thread = True
240 pydevd.settrace_forked(setup_tracing=setup_tracing)
241
242
243def _on_set_trace_for_new_thread(global_debugger):

Callers 1

new_forkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected