- One Tip a Week
- Posts
- One Tip a Week: Log Points
One Tip a Week: Log Points
This week’s tip of the week is Log Points. Whenever I show people Log Points, they have no idea VS Code or their browser has this feature. They originated in VS Code back in 2018, but eventually made their way into all the major browsers.
You know how everyone loves a good console.log
? Well, Log Points are exactly that, but they don't live in your code. They live in the metadata of your debugging session.
Just right-click in the line number column of any file and add a logpoint. When your code hits that line, it logs to the console automatically. No code changes, no cleanup needed.


It's like having invisible console.log statements that disappear when you're done debugging.

That’s it! Short and sweet. Until the next one!