class VariableResponseContext

Defined at line 40 of file ../../src/developer/debug/zxdb/debug_adapter/handlers/request_variables.cc

Class to share relevant information with all variable evaluate callbacks.

Number of evaluations should be specified during the construction of the class. Upon completion

of each evaluation a FormatNode is expected to be passed to `OnComplete()`. Using this FormatNode

the variable response is updated. Once all pending evaluations are complete, response is sent to

the client through `callback`.

Public Members

DebugAdapterContext * context
VariablesRequest request
function callback
RefPtr eval_context
int pending_evals
VariablesResponse response

Public Methods

void VariableResponseContext (DebugAdapterContext * context, dap::VariablesRequest request, std::function<void (dap::ResponseOrError<dap::VariablesResponse>)> callback, fxl::RefPtr<EvalContext> eval_context, int pending_evals)

Defined at line 42 of file ../../src/developer/debug/zxdb/debug_adapter/handlers/request_variables.cc

void ~VariableResponseContext ()

Defined at line 52 of file ../../src/developer/debug/zxdb/debug_adapter/handlers/request_variables.cc

void OnComplete (std::unique_ptr<FormatNode> node)

Defined at line 57 of file ../../src/developer/debug/zxdb/debug_adapter/handlers/request_variables.cc

void OnComplete (const fxl::WeakPtr<FormatNode> & node)

Defined at line 64 of file ../../src/developer/debug/zxdb/debug_adapter/handlers/request_variables.cc