:type setup_options: dict[str, bool]
(setup_options)
| 3413 | |
| 3414 | |
| 3415 | def 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 |
no test coverage detected