Debugging Workflow
Overview
A step-by-step approach to resolving compilation failures:
Compile with full diagnostics:
bashneo-solc contract.sol -I devpack --json-errors --json-warnings -o build/ 2>diag.jsonlFix highest-severity errors first. Parse errors (E1xxx) block all later stages. Fix them before addressing semantic errors.
Address semantic errors (E2xxx). These are type and scope issues in your Solidity code.
Review codegen errors (E3xxx). These usually indicate unsupported EVM features that need refactoring for NeoVM.
Run with manifest safety flags:
bashneo-solc contract.sol -I devpack \ --deny-wildcard-permissions \ --deny-wildcard-contracts \ -o build/Validate with Neo-Express smoke tests before deploying to testnet or mainnet.
TIP
Use -v (verbose) to see optimization statistics and IR details. This can help diagnose unexpected bytecode size or behavior.
