Auto-Log & Line Values
Automatically capture every meaningful expression, or capture everything on a single line on demand.
PRO feature. Auto-log and line values are PRO features. See Free vs PRO.
Auto-Log Mode
Auto-log automatically captures and displays all meaningful expression values inline — variable initializers, expression statements, return values, and call expressions — without adding any markers.
// With auto-log on, all of these show inline:
const price = 100;
const discounted = price * 0.9; // → 90
const label = `$${discounted}`; // → '$90'
Toggling
- Run ParrotJS: Toggle Auto Log from the command palette.
- Or use the setting
parrotjs.autoLog(defaulttrue).
Throttling
To prevent log spam on hot lines, parrotjs.logLimit (default 100) caps the number of captures per line in auto-log mode.
Show Line Values
On-demand capture for a single line: place your cursor on a line and run ParrotJS: Show Line Values to capture all meaningful expressions on that line — useful for inspecting complex expressions without permanently enabling auto-log or adding // ? markers.
Clear them with ParrotJS: Clear Line Values.
Related
- Inline Values — how captured values display.
- Live Comments — the manual, free alternative.
- Configuration — settings reference.