MCPcopy
hub / github.com/microsoft/vscode-js-debug / _onWriteMemory

Method _onWriteMemory

src/adapter/debugAdapter.ts:491–499  ·  view source on GitHub ↗
(params: Dap.WriteMemoryParams)

Source from the content-addressed store, hash-verified

489 }
490
491 async _onWriteMemory(params: Dap.WriteMemoryParams): Promise<Dap.WriteMemoryResult> {
492 const ref = params.memoryReference;
493 const bytesWritten = await this.findVariableStore(v => v.hasMemory(ref))?.writeMemory(
494 ref,
495 params.offset ?? 0,
496 Buffer.from(params.data, 'base64'),
497 );
498 return { bytesWritten };
499 }
500
501 async _onSetExpression(params: Dap.SetExpressionParams): Promise<Dap.SetExpressionResult> {
502 if (!this._thread) {

Callers 1

constructorMethod · 0.95

Calls 3

findVariableStoreMethod · 0.95
hasMemoryMethod · 0.80
writeMemoryMethod · 0.65

Tested by

no test coverage detected