vibeqc.crash_dump_context

vibeqc.crash_dump_context(out_stem, *, enabled=True)[source]

Register a crash-dump stem for the duration of the block.

Parameters:
  • out_stem (str | PathLike | None) – Path stem to use for any dump emitted from inside the block. None disables — the contextvar is left unset.

  • enabled (bool) – When False, behaves the same as out_stem=None.

  • disables (The companion env var VIBEQC_NO_CRASH_DUMP=1 also)

  • the (even when an explicit stem is passed — matches)

  • calls (VIBEQC_NO_HOSTNAME opt-out spelling. run_job)

Return type:

Iterator[Path | None]

:param crash_dump_context() automatically with the resolved opt-out: :param semantics; advanced callers using this directly should likewise: :param honour the env var: :param or let dump_on_failure() callers do so.: