mirror of
https://github.com/NixOS/nix
synced 2025-07-06 21:41:48 +02:00
DebugStackTracker class in one place
This commit is contained in:
parent
f317019edd
commit
b4a59a5eec
7 changed files with 96 additions and 2 deletions
|
@ -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;
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue