Nix  2.93.0-dev
Lix: A modern, delicious implementation of the Nix package manager; unstable internal interfaces
Loading...
Searching...
No Matches
nix::DebugState Struct Reference

Classes

class  TraceFrame
 

Public Member Functions

 DebugState (const PosTable &positions, const SymbolTable &symbols, std::function< ReplExitStatus(ValMap const &extraEnv, NeverAsync)> errorCallback)
 
void onEvalError (const EvalError *error, const Env &env, const Expr &expr, NeverAsync={})
 
const std::shared_ptr< const StaticEnvstaticEnvFor (const Expr &expr) const
 
TraceFrame addTrace (DebugTrace t)
 
Generator< const DebugTrace * > traces ()
 

Public Attributes

std::function< ReplExitStatus(ValMap const &extraEnv, NeverAsyncerrorCallback )
 
bool stop = false
 
bool inDebugger = false
 
std::map< const Expr *, const std::shared_ptr< const StaticEnv > > exprEnvs
 
int trylevel = 0
 

Member Function Documentation

◆ traces()

Generator< const DebugTrace * > nix::DebugState::traces ( )
inline

Enumerates the debug frame stack, from the current frame to the root frame. All values are guaranteed to not be null, but must be pointers because C++.


The documentation for this struct was generated from the following files: