Skip to content

Repl forgets it is not a debugger anymore when continued out of #10160

Open
@lf-

Description

Describe the bug

The repl should not have debugger commands when it is not a debugger. Nevertheless:

Steps To Reproduce

co/nix » nix repl --debugger --expr 'builtins.break {meow = 2; }'
Nix 2.20.0pre20240124_dirty debugger
Type :? for help.
info: breakpoint reached

nix-repl> :c
Loading installable ''...
Added 1 variables.
nix-repl> :st

nix-repl> :env

Expected behavior

Debugger commands should disappear when not in a debugger context anymore.

nix-env --version output

bd21b4b

Additional context

Add any other context about the problem here.

Priorities

Add 👍 to issues you find important.

Metadata

Assignees

No one assigned

    Labels

    bugreplThe Read Eval Print Loop, "nix repl" command and debugger

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions