← Back to Debugger domain
Debugger.disassembleWasmModule
No description available.
Domain: Debugger
experimental
Parameters
| Name | Type | Description |
scriptId | Runtime.ScriptId | Id of the script to disassemble |
Returns
| Name | Type | Description |
streamId | string | For large modules, return a stream from which additional chunks of
disassembly can be read successively. |
totalNumberOfLines | integer | The total number of lines in the disassembly text. |
functionBodyOffsets | array | The offsets of all function bodies, in the format [start1, end1,
start2, end2, ...] where all ends are exclusive. |
chunk | WasmDisassemblyChunk | The 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"}