web.dev LIVE has kicked off! Join us now for our digital event from June 30th to July 2nd at web.dev/live

Preview JavaScript values inline while debugging

Preview JavaScript values inline while debugging

While debugging, you can preview the values of JavaScript variables at that current point in time - this even works with minified scripts (after you pretty print).

To enable this feature (if it's not already):

  1. Go to DevTools settings (the cog wheel).
  2. Check General > Sources > Display variable values inline while debugging.