DocumentationConsole and Diagnostics

Console and Diagnostics

Inspect runtime logs and build diagnostics from the preview.

Console and Diagnostics

The preview panel includes a built-in console so you can debug without leaving the editor.

Console Panel

  • Toggle the console from the preview header.
  • A red badge shows the count of error logs.
  • Use Clear to remove logs and start fresh.

Diagnostics

The preview build process can emit warnings and errors. These appear in the console with stage and line information (when available), for example:

[html L12] Unexpected closing tag

What Gets Logged

  • console.log, console.info, console.warn, and console.error from your JS.
  • Build warnings and errors generated during preview compilation.