← Back to Debugger domain

Debugger.disassembleWasmModule

No description available.

Domain: Debugger experimental

Parameters

NameTypeDescription
scriptIdRuntime.ScriptIdId of the script to disassemble

Returns

NameTypeDescription
streamIdstringFor large modules, return a stream from which additional chunks of disassembly can be read successively.
totalNumberOfLinesintegerThe total number of lines in the disassembly text.
functionBodyOffsetsarrayThe offsets of all function bodies, in the format [start1, end1, start2, end2, ...] where all ends are exclusive.
chunkWasmDisassemblyChunkThe first chunk of disassembly.

Example Request

{
  "id": 1,
  "method": "Debugger.disassembleWasmModule",
  "params": {
    "scriptId": "1"
  }
}

Example Response

{
  "id": 1,
  "result": {
    "streamId": "streamId-value",
    "totalNumberOfLines": 1,
    "functionBodyOffsets": [],
    "chunk": "chunk-value"
  }
}

Usage in Node.js

const result = await send('Debugger.disassembleWasmModule', {"scriptId": "1"});
console.log(result);
// {"streamId": "streamId-value", "totalNumberOfLines": 1, "functionBodyOffsets": [], "chunk": "chunk-value"}