I'm using the chrome inspector to try and analyze the z-index
of a twitter bootstrap popover, and finding it extremely frustrating...
Is there a way to freeze the popover (while shown) so that I can assess and modify the associated CSS?
Placing a fixed 'hover' on the associated link does not cause the popover to appear.
Lock your screen On a keyboard: Press Search + L. Or press Launcher + L. At the bottom right, select the time. Select Lock .
Update: Dev Tools has many built-in shortcuts (press F1 for a list). Pausing script execution is F8 (when looking at the Sources tab, as of Chrome 45) or Ctrl + / . The shorcut only works in the main browser window if the Dev Tools are already open to the Sources tab.
What worked for me to pause execution: Open Chrome javascript console (Ctrl+Shift+J) Go to "sources" On the right side, click the little "pause" icon, or press F8 to pause script execution.
Go to the "Sources" tab. At the top right hand side, toggle the button that looks like the pause symbol surrounded by a hexagon (button on the far right) until the color of the circle turns black to turn it off. If the pause symbol isn't blue it may be that you've accidentally marked a line for debugging inspection.
Got it working. Here was my procedure:
Sources
tab in chrome inspectorElements
tab in inspectorTo be able to inspect any element do the following. This should work even if it's hard to duplicate the hover state:
Run the following javascript in the console. This will break into the debugger in 5 seconds.
setTimeout(function(){debugger;}, 5000)
Go show your element (by hovering or however) and wait until Chrome breaks into the Debugger.
Elements
tab in the Chrome Inspector, and you can look for your element there. Find Element
icon (looks like a magnifying glass) and Chrome will let you go and inspect and find your element on the page by right clicking on it, then choosing Inspect Element
Note that this approach is a slight variation to this other great answer on this page.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With