Skip to main content

Arguments

function
required
Luau function to disassemble. C closures are rejected.
DisassembleOptions
Optional table read for Recursive, ShowLines, ShowConstants, and StringPreviewMax. Missing fields or fields with the wrong type leave the default value unchanged.

Returns

string
Formatted disassembly text with a trailing newline.

Types

DisassembleOptions

Controls how Luau bytecode is rendered in the disassembly output.

Example

Disassemble a callback with selected output options.