3e1be9c530
Enter debugger more reliably in `let` expressions and function calls (cherry picked from commit c4ed92fa6f836d3d8eb354a48c37a2f9eeecc3aa) Change-Id: I16d0cad7e898feecd2399723b92ba8df67222fb4
25 lines
596 B
Markdown
25 lines
596 B
Markdown
---
|
|
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
|
|
```
|
|
|
|
Nix 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, Nix will correctly enter the debugger at both breakpoints.
|