How to enable view of rulers in Chrome DevTools? - google-chrome

Chrome DevTools previously offered a setting to show rulers when inspecting elements. It had a pixel ruler at the sides of the view, and boundary lines for each element extending the full view of the page.
It used to be found (as I recall) in "DevTools Settings / General". There no longer is a General section, and I don't see it in "DevTools Settings / Appearance". Has this been moved, or removed? I'm not finding documentation or discussion of it.

You can enable it in DevTools Settings > Preferences, under the Elements section.
To use, open the console and hover over an element to view the ruler. Thanks #Brandito for mentioning in the comment.

Click Toggle Device Toolbar which is in the top-left of your DevTools window.
Click More Options and then select Show rulers.
The rulers are to the left of and above your viewport. You can click on the numbers to set the width and height to that size.

Click on the Chrome setting, then:
Under Preferences, Enable DevTools and enable Ruler.
Go to your page and right click on it, then click inspect.
Click Toggle Device Toolbar icon (top-left of DevTools window.

In Developer Mode Press Ctrl+Shift+P then type Ruler

Related

Chrome extensions are not showing in popup window

Do any one knows how to make sure that extensions work in popup window as well.
I have my chrome browser[highlighted with RED rectangle box in the picture], I wanted to capture the full screen of popoup windows[which is below to chrome highlighted box]. Also to mention that popup page is very huge having big scroll in it [mentioned by blue arrow in the picture].
Its really important.
Right click the Google Chrome window on top and select open as tab, then the address bar opens with default options to the right and click the puzzle icon for your extensions :)

Save custom device width and height in chrome developer tools

Chrome developer tools in chrome can simulate some device dimensions and even we can set custom width(x) and height(y) for viewport. my question is can we save this custom width or height with custom name or just save it.
In recent versions this is found in...
Developer Tools (CTRL+SHIFT/OPTION+CMD+I)
Settings (F1)
Devices
Add custom device…
As specified in the Device Mode & Mobile Emulation Chrome docs.
Chrome Canary now has this conveniently found under "Edit…" in the 'Responsive' drop-down menu when in 'device mode' (CTRL+SHIFT/OPTION+CMD+M when developer tools are open).
Yes, you can save custom presets. Just click the More overrides button in the top right (represented as three horizontal dots). The emulation drawer should show up in the Dev-tools. You can click Save As button and assign a name to the custom preset. The new preset should then show up in the list of Models.
Check out the official DevTools documentation on this for more detailed steps.
Edit: This seems to have changed in the newer versions of Chrome. matharden's answer includes the correct steps: inside the devtools, go to Settings, select Devices in the left navigation and select Add custom device...
If you bring up the developer tools, click the settings cog in the corner and then select Devices from the left-hand menu, there is an option at the bottom of that page to add a custom device.
At the time I've added this answer, saving screen resolutions seems to have been disabled.
I created a preset (1024x768) whilst it was still possible, and I can still access that preset, but there's no longer a Save option where it did exist (as #Chirag64 described).
There's no mention of 'save' in the docs: https://developer.chrome.com/devtools/docs/device-mode, either :(
I had a quick look around in chrome://flags and my ~/Library/Application Support/Google/Chrome directory, but couldn't find reference to the preference I have saved...

Chrome: how to hide Chrome's page paint time panel in the top right corner?

Any option to show/hide the black box in the top right corner of Chrome when you open Developer Tools ?
The toggle for this is called Enable continuous page repainting and is located in the Developer Tools' drawer, under the Rendering tab.
Chrome Developer Tools Rendering Settings

Prevent browser window from scaling when chrome dev tools pane is open

Chrome's dev tools starting behaving strangely today. When I expand the dev tools pane, the main browser window scales down proportionately rather than becoming narrower (or shorter).
I've searched through the settings to see if there is something I inadvertently checked or unchecked, but haven't had any luck. I've also disabled all extensions and verified that I'm on the current version of Chrome.
You can see the effect in the screenshots below. The browser pane in the first screen shot has already scaled down, and scales further as I expand the dev tools pane in the second shot.
What should I do to fix this?
So it turns out it was a combination of settings I had inadvertently checked.
In Developer Tools Settings, Show 'Emulation' view in console drawer has to be checked
In the console drawer, on the Emulation tab, if Emulate screen and Shrink to fit are both checked, the browser window will scale as the dev tools pane is resized.
I unchecked Emulate screen and all is well.

How to hide Chrome "paused in debugger" overlay?

Some semi-recent update to Chrome now places an overlay on my webpage when paused at a breakpoint. I'm specifically trying to view the state of my page markup at this point, and the overlay is hiding exactly what I want to see!
Is there a way to turn off this markup?
Or is there a way to revert Chrome to a version that doesn't have this mis-feature?
Now there is an option in Inspector's settings, just uncheck Disable paused state overlay: Go to Settings (F1), the Preferences tab (the first one) and it's the last option under Appearance (top left).
It is very usable with the setTimeout(function(){debugger;}, 5000); trick to inspect elements that are visible only on hover.
I've run into this same issue, and I discovered that if I switch to the "Elements" tab and enable the element inspector (the button in the lower right with the magnifying glass icon) then the overlay is hidden. As you might expect, when you disable the element inspector again the "paused in debugger" message comes back, so I usually just leave the inspector enabled while I'm stepping through the debugger.
It may not be intuitive, but at least it works. If there are any other alternatives, I'd love to hear them!
If you see "Paused in Debugger" popup on Chrome 90.0+, then make sure to enable this setting under Preferences -> Appearance in Chrome Dev Tool to disable the popup.