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

Method setVariable

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

Source from the content-addressed store, hash-verified

218}
219
220dap::optional<SetVariableResponse> DebugSession::setVariable(
221 integer variablesReference, string &name, string &value)
222{
223 if (!raw)
224 return undefined;
225
226 dap::SetVariableRequest request;
227 request.variablesReference = variablesReference;
228 request.name = name;
229 request.value = value;
230 auto response = raw->setVariable(request);
231 if (response.valid())
232 return response.get().response;
233 return undefined;
234}
235
236dap::optional<SetExpressionResponse> DebugSession::setExpression(
237 integer frameId, string &expression, string &value)

Callers

nothing calls this directly

Calls 2

validMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected