← Back to Debugger domain
Debugger.getWasmBytecode
This command is deprecated. Use getScriptSource instead.
Domain: Debugger
deprecated
Parameters
| Name | Type | Description |
scriptId | Runtime.ScriptId | Id of the Wasm script to get source for. |
Returns
| Name | Type | Description |
bytecode | string | Script source. (Encoded as a base64 string when passed over JSON) |
Example Request
{
"id": 1,
"method": "Debugger.getWasmBytecode",
"params": {
"scriptId": "1"
}
}
Example Response
{
"id": 1,
"result": {
"bytecode": "bytecode-value"
}
}
Usage in Node.js
const result = await send('Debugger.getWasmBytecode', {"scriptId": "1"});
console.log(result);
// {"bytecode": "bytecode-value"}