Skip to content

Qang Run

The qang run command executes QangLang scripts.

Terminal window
qang run <path> [options]
  • <path> - Path to the QangLang script file to execute (required)
  • --debug / -d - Enable debug output during script execution
  • --heap / -m - Dump compiled bytecode and heap contents before execution
  • --eformat / -e - Error message format (default: verbose)
    • minimal - Shows minimal error information
    • compact - Shows compact error messages
    • verbose - Shows detailed error messages with full context
Terminal window
qang run script.ql
Terminal window
qang run script.ql --debug

Useful for understanding how your code is compiled:

Terminal window
qang run script.ql --heap
Terminal window
qang run script.ql --eformat compact

Shows just the error message without additional context.

Shows the error message with basic location information.

Shows detailed error messages including:

  • Full source code context
  • Line and column numbers
  • Highlighted error location
  • Detailed error description