Skip to content

Fully exit the process on exit! from REPL#16171

Merged
straight-shoota merged 1 commit intocrystal-lang:masterfrom
jneen:feature.repl-exit-bang
Sep 29, 2025
Merged

Fully exit the process on exit! from REPL#16171
straight-shoota merged 1 commit intocrystal-lang:masterfrom
jneen:feature.repl-exit-bang

Conversation

@jneen
Copy link
Contributor

@jneen jneen commented Sep 26, 2025

Adds a feature similar to Pry's !!!, useful in the case where debugger has been put in a loop of some kind. When exit! is invoked from the repl, instead of breaking only the local debugger instance, the entire process is exited. I probably would have used !!!, but it would have required some changes in the continue? logic that I think are a little deeper-reaching than I was willing to go with this.

@straight-shoota straight-shoota added this to the 1.18.0 milestone Sep 27, 2025
@straight-shoota straight-shoota merged commit 9713229 into crystal-lang:master Sep 29, 2025
41 checks passed
@straight-shoota straight-shoota changed the title fully exit the process on exit! from repl Fully exit the process on exit! from REPL Sep 29, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants