aboutsummaryrefslogtreecommitdiff
path: root/doc/manual/rl-next/forbid-nested-debuggers.md
blob: c9644057245758666583489232f613e26ebef4fc (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
---
synopsis: Nested debuggers are no longer supported
prs: 9920
credits: 9999years
category: Improvements
---

Previously, evaluating an expression that throws an error in the debugger would
enter a second, nested debugger:

```
nix-repl> builtins.throw "what"
error: what


Starting REPL to allow you to inspect the current state of the evaluator.

Welcome to Nix 2.18.1. Type :? for help.

nix-repl>
```

Now, it just prints the error message like `nix repl`:

```
nix-repl> builtins.throw "what"
error:
       … while calling the 'throw' builtin
         at «string»:1:1:
            1| builtins.throw "what"
             | ^

       error: what
```