mirror of
https://github.com/NixOS/nix
synced 2025-06-27 08:31:16 +02:00
print env bindings
This commit is contained in:
parent
4b5f9b35f0
commit
bd3b5329f9
3 changed files with 67 additions and 7 deletions
|
@ -109,6 +109,7 @@ ref<EvalState> EvalCommand::getEvalState()
|
|||
if (startReplOnEvalErrors)
|
||||
debuggerHook = [evalState{ref<EvalState>(evalState)}](const Error & error, const Env & env) {
|
||||
printError("%s\n\n" ANSI_BOLD "Starting REPL to allow you to inspect the current state of the evaluator.\n" ANSI_NORMAL, error.what());
|
||||
printEnvBindings(env);
|
||||
auto vm = mapEnvBindings(env);
|
||||
runRepl(evalState, *vm);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue