Skip to content

Veyra Live Values 1.0.0: console.log values next to your code - #45

Merged
fcopensource merged 1 commit into
mainfrom
live-values-extension
Nov 21, 2026
Merged

fcopensource merged 1 commit into
mainfrom
live-values-extension

Conversation

@fcopensource

Copy link
Copy Markdown
Owner

What

A new free VS Code extension: Veyra Live Values. Run Node.js in a VS Code terminal and every console.log, info, debug, warn and error value appears at the end of the line that printed it, live. Crashes (uncaught exceptions and unhandled rejections) are marked in red at the line that threw.

The paid tools in this space (Console Ninja, Quokka Pro) are big businesses. Ours is free and 100% local.

Live Values

Features

  • Values at the end of their lines, with ×N for lines that run many times
  • 💥 Crashes at the line that threw (red line and overview ruler mark)
  • Hover: full value, a chart of numbers (min, max, last), recent values, Copy and Clear links
  • Live Values sidebar listing every line that printed, by file; click to jump there
  • Status bar counter (Live 5 🔥 1) with a menu
  • Run This File with Live Values for .js and .ts (tsx), plus a Live Values terminal for any command
  • Works in every VS Code terminal and Node debug sessions (F5 and launch.json)
  • TypeScript: values land on the .ts line when source maps exist
  • Each run starts clean; values follow their lines while you edit
  • Pause and resume, hide inline values, settings and theme colours

How it works

runtime/hook.js is added to terminals through NODE_OPTIONS=--require (and to Node debug sessions). It wraps the console methods, records only calls from the project's own code (not node_modules, not other folders) into a local file, and the extension reads that file. It never changes what the program prints or how it exits. Nothing is sent anywhere.

Tests

  • npm test: 18 tests. Model tests (line shifting while editing, runs, hover, sparkline) and hook tests that run real Node processes (CommonJS, ESM, crashes, rejections, source-mapped TS, node_modules, broken values).
  • npm run test:integration: a 13-step test in VS Code 1.144, including Run This File through a real terminal, end to end. Passed twice in a row.
  • Packaged: release/veyra-live-values-1.0.0.vsix (70 KB). Added to the "Publish VS Code extension" workflow.

After merging

Actions → Publish VS Code extension → live-values to put it on the Marketplace.

🤖 Generated with Claude Code

A new free VS Code extension. Run Node.js in a VS Code terminal and every
console.log, info, debug, warn and error value appears at the end of the
line that printed it, live. Crashes (uncaught exceptions and unhandled
rejections) are marked in red at the line that threw.

- runtime/hook.js is added to terminals through NODE_OPTIONS (and to Node
  debug sessions). It records only calls from the project's own code, with
  source-mapped .ts lines, into a local file the extension reads. It never
  changes what the program prints or how it exits.
- Inline values with a run count, hover with the full value, a chart of
  numbers and recent values, the Live Values sidebar, status bar counter,
  Run This File (JS and TS), pause, clear, copy. Each run starts clean and
  values follow their lines while you edit.
- Tests: 18 unit tests (model + real Node processes with the hook) and a
  13-step VS Code integration test, including a real terminal run.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@fcopensource
fcopensource merged commit d901765 into main Nov 21, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants