Help us make DevTools Tips better! Fill out this survey to tell us more about your DevTools habits and frustrations.
Console.log() for the web with logpoints
Here's how to do it:
Add logpointto open the editor
- Hit Enter to save and a badge shows on the line number.
- Go to the console, interact with the site and every time this line executes, you see the result of the logpoint expression.
- If you don't want to log information any longer, click the Logpoint again to remove it.
Logpoints are a way to inject a
console.log() into any web site without editing its source code.
You can see this in action in this video on YouTube: