tractor/tractor/devx
Tyler Goodlet f7f738638d More `.pause_from_sync()` in bg-threads "polish"
Various `try`/`except` blocks around external APIs that raise when not
running inside an `tractor` and/or some async framework (mostly to avoid
too-late/benign error tbs on certain classes of actor tree teardown):
- for the `log.pdb()` prompts emitted before REPL console entry.
- inside `DebugStatus.is_main_trio_thread()`'s call to `sniffio`.
- in `_post_mortem()` by catching `NoRuntime` when called from a thread
  still active after the `.open_root_actor()` has already exited.

Also,
- create a dedicated `DebugStateError` for raising instead of `assert`s
  when we have actual debug-request inconsistencies (as seem to be most
  likely with bg thread usage of `breakpoint()`).
- show the `open_crash_handler()` frame on `bdb.BdbQuit` (for now?)
2024-08-22 17:10:01 -04:00
..
__init__.py Get multi-threaded sync-pausing fully workin! 2024-07-10 12:29:05 -04:00
_debug.py More `.pause_from_sync()` in bg-threads "polish" 2024-08-22 17:10:01 -04:00
_frame_stack.py Rework and first draft of `.devx._frame_stack.py` 2024-05-08 14:51:56 -04:00
_stackscope.py Officially test proto-ed `stackscope` integration 2024-07-10 19:58:27 -04:00
cli.py Mk debugger tests work for arbitrary pre-REPL format 2024-03-05 12:22:04 -05:00
pformat.py Move `_debug.pformat_cs()` into `devx.pformat` 2024-05-08 13:30:15 -04:00