Let’s say you want to inspect a DOM element that only conditionally appears. Inspecting said element requires moving your mouse to it, but when you try to, it disappears: To inspect the element you can paste this into your console: setTimeout(function() { debugger; }, 5000);.
Full article