2024-03-08 05:38:10 +00:00
|
|
|
---
|
|
|
|
synopsis: The `--debugger` will start more reliably in `let` expressions and function calls
|
|
|
|
prs: 9917
|
|
|
|
issues: 6649
|
2024-05-15 02:14:58 +00:00
|
|
|
credits: [9999years, horrors]
|
|
|
|
category: Fixes
|
2024-03-08 05:38:10 +00:00
|
|
|
---
|
|
|
|
|
|
|
|
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
|
|
|
|
```
|
|
|
|
|
2024-05-05 22:32:20 +00:00
|
|
|
Lix would correctly enter the debugger at `builtins.break a`, but if you asked
|
2024-03-08 05:38:10 +00:00
|
|
|
it to `:continue`, it would skip over the `builtins.break "hello"` expression
|
|
|
|
entirely.
|
|
|
|
|
2024-05-05 22:32:20 +00:00
|
|
|
Now, Lix will correctly enter the debugger at both breakpoints.
|