1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-27 08:31:16 +02:00

print env bindings

This commit is contained in:
Ben Burdette 2021-08-24 16:32:54 -06:00
parent 4b5f9b35f0
commit bd3b5329f9
3 changed files with 67 additions and 7 deletions

View file

@ -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);
};