1
0
Fork 0
tractor/tractor
Tyler Goodlet 4d3c109277 Restore `breakpoint()` hook after runtime exits
Previously we were leaking our (pdb++) override into the Python runtime
which would always result in a runtime error whenever `breakpoint()` is
called outside our runtime; after exit of the root actor . This
explicitly restores any previous hook override (detected during startup)
or deletes the hook and restores the environment if none existed prior.

Also adds a new WIP debugging example script to ensure breakpointing
works as normal after runtime close; this will be added to the test
suite.
2023-04-17 13:43:16 -04:00
..
experimental Move move context code into new `._context` mod 2023-04-14 16:35:25 -04:00
trionics Flip allocate log msgs to debug 2023-04-14 16:35:25 -04:00
__init__.py Use multiline import for debug mod 2023-04-17 13:43:16 -04:00
_child.py Rename our core module to `_runtime` 2022-09-15 23:41:28 -04:00
_clustering.py Passthrough runtime kwargs from `open_actor_cluster()` 2022-12-11 19:56:08 -05:00
_context.py Tweak doc string 2023-04-14 18:08:08 -04:00
_debug.py First try: switch debug machinery over to `pdbp` B) 2023-04-17 13:43:16 -04:00
_discovery.py More single doc-strs in discovery mod 2023-04-14 16:35:25 -04:00
_entry.py Change a bunch of log levels to cancel, including any `ContextCancelled` handling 2023-04-14 16:35:25 -04:00
_exceptions.py Only tuplize `.canceller` if non-`None` 2023-04-14 16:35:25 -04:00
_forkserver_override.py Re-license code base for distribution under AGPL 2021-12-14 23:33:27 -05:00
_ipc.py Adjust all default is `None` annots (per new `mypy`) 2022-12-12 13:18:22 -05:00
_mp_fixup_main.py Avoid importing mp for as long as possible 2022-02-17 11:55:26 -05:00
_portal.py Move move context code into new `._context` mod 2023-04-14 16:35:25 -04:00
_root.py Restore `breakpoint()` hook after runtime exits 2023-04-17 13:43:16 -04:00
_runtime.py Move move context code into new `._context` mod 2023-04-14 16:35:25 -04:00
_spawn.py Log waiter task cancelling msg as cancel-level 2023-04-14 16:35:25 -04:00
_state.py Move `NoRuntime` import inside `current_actor()` to avoid cycle 2023-04-14 16:35:25 -04:00
_streaming.py Move move context code into new `._context` mod 2023-04-14 16:35:25 -04:00
_supervise.py Hide actor nursery exit frame 2023-04-17 13:43:16 -04:00
log.py Add some log-level method doc-strings 2023-04-14 16:35:25 -04:00
msg.py Make `process_messages()` a mod func 2022-09-15 23:41:28 -04:00
to_asyncio.py Move `trio` scope outside first inter-task-chan receive 2022-10-11 20:00:05 -04:00