- Master Dev Tools to make your developer life a bit easier!
Demo: 👉 Click me
(note: The outputs in the demo is different from the examples below)
Use a DOM change breakpoint when you want to pause on the code that changes a DOM node or its children.
Click on the element and hover over Break on, then select Subtree modifications, Attribute modifications, or Node removal.
- Subtree modifications: Triggered when a child of the currently-selected node is removed or added, or the contents of a child are changed. Not triggered on child node attribute changes, or on any changes to the currently-selected node.
- Attributes modifications: Triggered when an attribute is added or removed on the currently-selected node, or when an attribute value changes.
- Node Removal: Triggered when the currently-selected node is removed.
The console.log() that we all know and love.
You can change the %s to assigned value.
You can style the string with CSS syntax.
It gives you a warning style output.
It gives you an error style output.
It adds a little 'i' icon next to the output. (For whatever reason, the icon doesn't appear in Chrome devtools, so this is the output in Firefox devtools.)
If the statement is false, the wrong message will be printed. If it's true, nothing will happen.
You can clear all the messages in the console.
You can see all the attributes and methods of the selected object.
Group related logging messages together to make the output more readable.
You can use console.groupCollapsed() to set the default toggle to be closed.
It counts how many times an element has appeared until now.
You can track how much time does a black of code takes.
Turn the output into table format to see the data easier.














