Agent Skills: MultiversX WASM Debugging

Analyzing WASM binaries and debugging via DWARF.

UncategorizedID: multiversx/mx-ai-skills/mvx_wasm_debug

Install this agent skill to your local

pnpm dlx add-skill https://github.com/multiversx/mx-ai-skills/tree/HEAD/antigravity/skills/mvx_wasm_debug

Skill Files

Browse the full folder contents for mvx_wasm_debug.

Download Skill

Loading file tree…

antigravity/skills/mvx_wasm_debug/SKILL.md

Skill Metadata

Name
mvx_wasm_debug
Description
Analyzing WASM binaries and debugging via DWARF.

MultiversX WASM Debugging

This skill helps you analyze the compiled output.wasm file.

1. Binary Size Analysis

  • Twiggy: Use twiggy top output.wasm to see what takes up space.
  • Bloat: Heavy JSON deserialization code? Large static strings?

2. Panic Analysis

  • Abort Messages: By default, sc_panic! adds a string message.
  • Optimization: wasm-opt removes these in production builds (--opt-level z).
  • Debugging: If the contract traps with unreachable, check if it ran out of gas or hit a panic without a message.

3. DWARF Info

  • MultiversX supports building with debug symbols (mxpy contract build --debug).
  • This allows mapping WASM instructions back to Rust source lines in the debugger.