2024-03-10 07:59:50 +00:00
|
|
|
https://github.com/NixOS/nix/pull/9917 (Enter debugger more reliably in let expressions and function calls)
|
|
|
|
|
|
|
|
This test ensures that continues don't skip opportunities to enter the debugger.
|
2024-03-22 23:45:05 +00:00
|
|
|
@args --debugger
|
2024-03-10 07:59:50 +00:00
|
|
|
trace: before outer break
|
|
|
|
info: breakpoint reached
|
|
|
|
|
|
|
|
nix-repl> :c
|
|
|
|
trace: before inner break
|
|
|
|
info: breakpoint reached
|
|
|
|
|
2024-03-10 07:59:50 +00:00
|
|
|
nix-repl> :bt
|
|
|
|
|
|
|
|
0: error: breakpoint reached
|
|
|
|
«none»:0
|
|
|
|
1: while calling a function
|
2024-03-22 23:45:05 +00:00
|
|
|
$TEST_DATA/regression_9917.nix:3:5
|
2024-03-10 07:59:50 +00:00
|
|
|
|
|
|
|
2| a = builtins.trace "before inner break" (
|
|
|
|
3| builtins.break { msg = "hello"; }
|
|
|
|
| ^
|
|
|
|
4| );
|
|
|
|
|
|
|
|
2: while calling a function
|
2024-03-22 23:45:05 +00:00
|
|
|
$TEST_DATA/regression_9917.nix:2:7
|
2024-03-10 07:59:50 +00:00
|
|
|
|
|
|
|
1| let
|
|
|
|
2| a = builtins.trace "before inner break" (
|
|
|
|
| ^
|
|
|
|
3| builtins.break { msg = "hello"; }
|
|
|
|
|
2024-03-10 07:59:50 +00:00
|
|
|
nix-repl> :c
|
|
|
|
|
|
|
|
nix-repl> msg
|
|
|
|
"hello"
|