tractor/tractor/devx
Gud Boi 4da9c3daa8 Add `use_stackscope` runtime var for subactor init
Track `stackscope` enablement in `RuntimeVars` so
the flag propagates to subactors via the standard
rtvar IPC path instead of relying solely on the
`TRACTOR_ENABLE_STACKSCOPE` env var.

Deats,
- add `use_stackscope: bool` to `RuntimeVars`
  struct + defaults dict
- `enable_stack_on_sig()` sets the rtvar on
  successful `stackscope` import, asserts unset
  on `ImportError`
- nest stackscope init under `_debug_mode` gate
  in `Actor.async_main`, check rtvar alongside
  env var
- defer `maybe_init_greenback` import to its own
  `use_greenback` branch

(this commit msg was generated in some part by [`claude-code`][claude-code-gh])
[claude-code-gh]: https://github.com/anthropics/claude-code

(cherry picked from commit 48523358cf)
2026-06-09 23:24:18 -04:00
..
debug Rename `discovery._discovery` to `._api` 2026-04-14 19:54:14 -04:00
__init__.py Add `._debug_hangs` to `.devx` for hang triage 2026-06-09 23:24:18 -04:00
_debug_hangs.py Add `._debug_hangs` to `.devx` for hang triage 2026-06-09 23:24:18 -04:00
_frame_stack.py Drop `name=__name__` from all `get_logger()` calls 2026-02-11 21:04:49 -05:00
_stackscope.py Add `use_stackscope` runtime var for subactor init 2026-06-09 23:24:18 -04:00
cli.py Mk debugger tests work for arbitrary pre-REPL format 2025-03-20 15:07:27 -04:00
pformat.py Mv in `modden.repr` content: some `reprlib`-utils 2025-07-13 23:33:47 -04:00