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

Function apply_debugger_options

pydevd.py:3415–3435  ·  view source on GitHub ↗

:type setup_options: dict[str, bool]

(setup_options)

Source from the content-addressed store, hash-verified

3413
3414
3415def apply_debugger_options(setup_options):
3416 """
3417
3418 :type setup_options: dict[str, bool]
3419 """
3420 default_options = {"save-signatures": False, "qt-support": ""}
3421 default_options.update(setup_options)
3422 setup_options = default_options
3423
3424 debugger = get_global_debugger()
3425 if setup_options["save-signatures"]:
3426 if pydevd_vm_type.get_vm_type() == pydevd_vm_type.PydevdVmType.JYTHON:
3427 sys.stderr.write("Collecting run-time type information is not supported for Jython\n")
3428 else:
3429 # Only import it if we're going to use it!
3430 from _pydevd_bundle.pydevd_signature import SignatureFactory
3431
3432 debugger.signature_factory = SignatureFactory()
3433
3434 if setup_options["qt-support"]:
3435 enable_qt_support(setup_options["qt-support"])
3436
3437
3438@call_only_once

Callers 1

mainFunction · 0.85

Calls 5

SignatureFactoryClass · 0.90
get_global_debuggerFunction · 0.85
enable_qt_supportFunction · 0.85
updateMethod · 0.45
writeMethod · 0.45

Tested by

no test coverage detected