Skip to content

Console & Output

console.log output appears inline at the call site and in the ParrotJS output panel.

ParrotJS intercepts console output so you never need to switch to the terminal to read logs. This works on the free tier.

Inline Console Output

console.log, console.warn, and console.error output appears as colored annotations right at the call site in your editor:

const sum = add(5, 7);
console.log('sum is', sum);   // → ['sum is', 12]   (inline, at the call site)
console.warn('deprecated');   // → 'deprecated'     (amber)
console.error('boom');        // → 'boom'           (red)

Toggle this with parrotjs.showConsoleInline (default true).

The Output Panel

The ParrotJS output panel streams a persistent record of everything, including:

  • Console entries with timestamps and source-file attribution
  • Runtime errors with full stack traces (source-mapped back to your original code)
  • Test results
  • Session lifecycle events (start, stop, crash, timeout)

Open it with ParrotJS: Show Output (from the command palette) or the ParrotJS panel in the sidebar.

The panel keeps inline decorations concise — verbose output (like full stack traces) goes to the panel rather than the editor.