aboutsummaryrefslogtreecommitdiff
path: root/src/libcmd/command.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/libcmd/command.cc')
-rw-r--r--src/libcmd/command.cc16
1 files changed, 10 insertions, 6 deletions
diff --git a/src/libcmd/command.cc b/src/libcmd/command.cc
index d790bb51d..51a071d25 100644
--- a/src/libcmd/command.cc
+++ b/src/libcmd/command.cc
@@ -79,24 +79,28 @@ ref<EvalState> EvalCommand::getEvalState()
return ref<EvalState>(evalState);
}
*/
+// ref<EvalState> EvalCommand::getEvalState()
+// {
+// if (!evalState)
+// evalState = std::make_shared<EvalState>(searchPath, getStore());
+// return ref<EvalState>(evalState);
+// }
+
+
EvalCommand::EvalCommand()
{
+ // std::cout << "EvalCommand::EvalCommand()" << std::endl;
addFlag({
.longName = "debugger",
.description = "start an interactive environment if evaluation fails",
.handler = {&startReplOnEvalErrors, true},
});
}
-// ref<EvalState> EvalCommand::getEvalState()
-// {
-// if (!evalState)
-// evalState = std::make_shared<EvalState>(searchPath, getStore());
-// return ref<EvalState>(evalState);
-// }
extern std::function<void(const Error & error, const std::map<std::string, Value *> & env)> debuggerHook;
ref<EvalState> EvalCommand::getEvalState()
{
+ std::cout << " EvalCommand::getEvalState()" << startReplOnEvalErrors << std::endl;
if (!evalState) {
evalState = std::make_shared<EvalState>(searchPath, getStore());
if (startReplOnEvalErrors)