aboutsummaryrefslogtreecommitdiff
path: root/src/libcmd
diff options
context:
space:
mode:
authorBen Burdette <bburdette@gmail.com>2021-12-22 15:38:49 -0700
committerBen Burdette <bburdette@gmail.com>2021-12-22 15:38:49 -0700
commitb4a59a5eec5bdb94ee2bbc8365f024d5787abd60 (patch)
tree8b9f2ebb64f06cd2dca5efdeb58c6870a41dbd50 /src/libcmd
parentf317019edda7afac8590e68d4d979b03a2cdbf62 (diff)
DebugStackTracker class in one place
Diffstat (limited to 'src/libcmd')
-rw-r--r--src/libcmd/command.cc2
-rw-r--r--src/libcmd/repl.cc1
2 files changed, 3 insertions, 0 deletions
diff --git a/src/libcmd/command.cc b/src/libcmd/command.cc
index b37959a2e..0ada5fa3c 100644
--- a/src/libcmd/command.cc
+++ b/src/libcmd/command.cc
@@ -75,6 +75,8 @@ ref<EvalState> EvalCommand::getEvalState()
printStaticEnvBindings(expr);
+ std::cout << evalState->vCallFlake << std::endl;
+
std::cout << "expr: " << std::endl;
expr.show(std::cout);
std::cout << std::endl;
diff --git a/src/libcmd/repl.cc b/src/libcmd/repl.cc
index 0eea2389b..2a925df64 100644
--- a/src/libcmd/repl.cc
+++ b/src/libcmd/repl.cc
@@ -451,6 +451,7 @@ bool NixRepl::processLine(string line)
}
else if (arg == "error") {
if (this->debugError.has_value()) {
+ // TODO user --show-trace setting?
showErrorInfo(std::cout, (*debugError)->info(), true);
}
else