aboutsummaryrefslogtreecommitdiff
path: root/doc/manual/rl-next/enter-debugger-more-reliably-in-let-and-calls.md
blob: 49e6c1cc84776acdaec69500537dcae25863a1ac (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
---
synopsis: The `--debugger` will start more reliably in `let` expressions and function calls
prs: 9917
issues: 6649
---

Previously, if you attempted to evaluate this file with the debugger:

```nix
let
  a = builtins.trace "before inner break" (
    builtins.break "hello"
  );
  b = builtins.trace "before outer break" (
    builtins.break a
  );
in
  b
```

Lix would correctly enter the debugger at `builtins.break a`, but if you asked
it to `:continue`, it would skip over the `builtins.break "hello"` expression
entirely.

Now, Lix will correctly enter the debugger at both breakpoints.