MCPcopy Create free account
hub / github.com/Codeya-IDE/deepin-ide / evaluate

Method evaluate

src/plugins/debugger/dap/debugsession.cpp:726–741  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

724}
725
726dap::optional<EvaluateResponse> DebugSession::evaluate(string &expression, integer frameId, dap::optional<string> context)
727{
728 if (!raw)
729 return undefined;
730
731 dap::EvaluateRequest request;
732 request.context = context;
733 request.expression = expression;
734 request.frameId = frameId;
735
736 auto response = raw->evaluate(request);
737 if (response.valid()) {
738 return response.get().response;
739 }
740 return undefined;
741}
742
743void DebugSession::restartFrame(integer frameId, integer threadId)
744{

Callers 2

evaluateWatchVariableMethod · 0.45
evaluateFileMethod · 0.45

Calls 2

validMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected