Files
lix/tests/functional2/repl_characterization/debugger/no_nested_debugger.md
T
rootile f7ce20d879 tests(f2/repl): migrate debugger tests
Change-Id: I2cc1d45db2e5e0b8cea6798c70e13ede57fea6ee
2026-06-11 16:19:20 +02:00

965 B

args, files
args files
--debugger
-f
no_nested_debuggers.nix
no_nested_debuggers.nix
Lix VERSION
Type :? for help.
info: breakpoint reached

we enter a debugger via builtins.break in the input file.

"values show"
"values show"

causing another debugger even should not nest, but simply print the error, skip the breakpoint, etc as appropriate

builtins.break 2
builtins.throw "foo"
assert false; 2
2

error:
       … caused by explicit throw
         at «string»:1:1:
            1| builtins.throw "foo"
             | ^

       error: foo

error: assertion failed
       at «string»:1:1:
            1| assert false; 2
             | ^

exiting the debugger frame should allow another to open.

:c
builtins.throw "bar"
Loading installable ''...
error: bar

and once again, more breakpoints are ignored.

builtins.break 3
3