mirror of
https://github.com/NixOS/nix
synced 2025-06-27 00:11:17 +02:00
break() primop; step and go debug commands
This commit is contained in:
parent
990bec78d3
commit
412d58f0bb
4 changed files with 40 additions and 2 deletions
|
@ -417,6 +417,7 @@ EvalState::EvalState(
|
|||
, repair(NoRepair)
|
||||
, store(store)
|
||||
, buildStore(buildStore ? buildStore : store)
|
||||
, debugStop(true)
|
||||
, regexCache(makeRegexCache())
|
||||
, baseEnv(allocEnv(128))
|
||||
, staticBaseEnv(new StaticEnv(false, 0))
|
||||
|
@ -930,7 +931,7 @@ DebugTraceStacker::DebugTraceStacker(EvalState &evalState, DebugTrace t)
|
|||
:evalState(evalState), trace(t)
|
||||
{
|
||||
evalState.debugTraces.push_front(t);
|
||||
if (debuggerHook)
|
||||
if (evalState.debugStop && debuggerHook)
|
||||
debuggerHook(0, t.env, t.expr);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue