Logpoints for VS Code

  21 Sep 2023   1 min read

Wallaby for VS Code now supports Logpoints, allowing you to use breakpoints to log values. Logpoints allow you to display the value of any expression without modifying your code, simply by placing a breakpoint next to the expression you want to log.

  • Quickly log values: Simply place a đź”´ breakpoint on a line (F9) or next to an expression (⇧ F9) to log its value.
  • No debugger required: Logpoints require zero setup / configuration and work seamlessly using Wallaby’s existing runtime.
  • Effortless management: No need to modify your source code; Logpoints can be added/removed with existing keyboard shortcuts.
  • Seamless integration with VS Code: Logpoints persist when files are closed and reopened, and are managed by VS Code.
  • Clear visual indicators: Easily see and understand what’s being logged, especially when using inline breakpoints.
  • Works on classes and functions: Quickly see logs for all lines within a class or function by adding a logpoint to the declaration.

The Logpoints feature was inspired by similar functionality in our other product, Console Ninja; if you haven’t already tried Console Ninja, it’s worth checking out.