Commit Graph

2 Commits (c709a4ad7228de0773f30f9455a78f79f25cced2)

Author SHA1 Message Date
Tyler Goodlet 9af6271e99 Add `breakpoint()` hook restoration example + test 2025-03-22 14:24:53 -04:00
Tyler Goodlet 79622bbeea 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-05-15 00:47:29 -04:00