Version: 1.1.0

mojo debug

Launch the Mojo debugger on a file.

Essentials

  • The debugger is LLDB with Mojo name demangling.
  • Set breakpoints on functions you can still see after inlining.
  • The VS Code extension can call this for you.
  • Optimized builds skip some stops.

Example

$ mojo debug hello.mojo

Keep in mind

Debug the unoptimized build first.