aboutsummaryrefslogtreecommitdiff
path: root/tests/functional/repl_characterization/data/regression_9917.test
blob: 67ad1db6b97587cd4ac65ae8bcab06c43c845343 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
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.
@args --debugger
  trace: before outer break
  info: breakpoint reached

  nix-repl> :c
  trace: before inner break
  info: breakpoint reached

  nix-repl> :bt

  0: error: breakpoint reached
  «none»:0
  1: while calling a function
  $TEST_DATA/regression_9917.nix:3:5

       2|   a = builtins.trace "before inner break" (
       3|     builtins.break { msg = "hello"; }
        |     ^
       4|   );

  2: while calling a function
  $TEST_DATA/regression_9917.nix:2:7

       1| let
       2|   a = builtins.trace "before inner break" (
        |       ^
       3|     builtins.break { msg = "hello"; }

  nix-repl> :c

  nix-repl> msg
  "hello"