MCPcopy Create free account
hub / github.com/Icinga/icinga2 / dbg_eval

Function dbg_eval

lib/cli/consolecommand.cpp:71–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69}
70
71extern "C" void dbg_eval(const char *text)
72{
73 std::unique_ptr<Expression> expr;
74
75 try {
76 ScriptFrame frame(true);
77 expr = ConfigCompiler::CompileText("<dbg>", text);
78 Value result = Serialize(expr->Evaluate(frame), 0);
79 dbg_inspect_value(result);
80 } catch (const std::exception& ex) {
81 std::cout << "Error: " << DiagnosticInformation(ex) << "\n";
82 }
83}
84
85extern "C" void dbg_eval_with_value(const Value& value, const char *text)
86{

Callers

nothing calls this directly

Calls 2

dbg_inspect_valueFunction · 0.85
EvaluateMethod · 0.80

Tested by

no test coverage detected