DEV Community

Discussion on: My favorite front-end debugging hack

Collapse
 
gtyrkicksin216 profile image
Ryan Wood

Is there a reason why you'd use this over the built in UI breakpoint additions in the inspector (break on: subtree modification, attribute modification, node removal)?

Collapse
 
lucasjanon profile image
Lucas

That's definitely an option! Depending on the case it may not be as predictable as the hack, since sometimes nodes in the DOM are inserted before being displayed/styled.

Collapse
 
tomsherman profile image
Tom Sherman

If you're using a framework like react then the UI breakpoints kinda don't work because all of the DOM updates are batched and scheduled.