mirror of
https://github.com/NixOS/nix
synced 2025-06-25 06:31:14 +02:00
Enter debugger on builtins.trace
with an option
This commit is contained in:
parent
1ba9780cf5
commit
8b7eb7400b
2 changed files with 7 additions and 0 deletions
|
@ -995,6 +995,10 @@ static void prim_trace(EvalState & state, const PosIdx pos, Value * * args, Valu
|
|||
printError("trace: %1%", args[0]->string_view());
|
||||
else
|
||||
printError("trace: %1%", ValuePrinter(state, *args[0]));
|
||||
if (evalSettings.builtinsTraceDebugger && state.debugRepl && !state.debugTraces.empty()) {
|
||||
const DebugTrace & last = state.debugTraces.front();
|
||||
state.runDebugRepl(nullptr, last.env, last.expr);
|
||||
}
|
||||
state.forceValue(*args[1], pos);
|
||||
v = *args[1];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue