Emulate a focused Page option not available in Chrome Developer Tools - selenium-chromedriver

There used to be an option, "Emulate a focused page," under "Global preferences" in Chrome developer tools. However, I am not able to find that option anymore.
Any ideas?

There are two ways to invoke it now:
A checkbox in Rendering panel
Command panel:
press CtrlShiftP (or ⌘ShiftP)
type emfo to find the Emulate a focused page item
press Enter

Related

Chrome shortcut to open source panel directly?

Is there a keyboard shortcut to open the Chrome source Panel directly? I found some shortcuts to open the element panel(shift+command+c) or console panel(command+option+j) but did not find one to open the Source panel, so that I can inspect and debug more quickly
I don't think there is, but you can always just right-click and press inspect or just switch to the source panel after using a shortcut to view a different panel.
Cmd+Opt+I will actually open the last used panel. So if Sources was the last panel you had opened, you can use this keyboard shortcut to directly open it while debugging.

What is the shortcut key to show/hide tool buttons in PhpStorm?

I am unable to find the shortcut key for this button. And as I do not know the name of this button I cannot search for it.
There is no shortcut by default, but you can go to Settings and type "tool buttons" into the search bar. Then you can assign a keystroke to "Tool Buttons" feature.
Here is your answer from official docs
Hiding all tool windows attached to the same tool window bar
Do one of the following:
Press and hold the Alt (for Windows and Linux users) or ⌘ (for macOS users) key, and click hide on the title bar of any of the tool
windows attached to the corresponding tool window bar.
Choose Window | Active Tool Window | Hide Side Tool Windows in the main menu. This command hides all the tool windows attached to same
tool window bar as the active tool window or the last of the active
tool windows.
I find that double tapping Alt key does the trick for me.
Maybe is Ctrl+Tab
Check this. In the link you can read :
Switch between the tool windows and files opened in the
editor. Ctrl+Tab

Can't find the overrides or emulation tabs in chrome 2016?

I'm trying to view the emulation panel but I can't find it anywhere. Everywhere I've looked it says to open an overrides panel to find it but that's missing too. I also can't find any helpful or new answers to my question. Pressing esc only opens up console and there's nothing in settings that seems to help. Can someone please tell me how to reach it?
Instead of emulation in the drawer Device Mode is now offered for emulating other devices. It provides many benefits over the old emulation mode, such as taking into account the meta viewport tag on render. So what you see is much closer to what you'd get in real life.
I'm using 51.0.2704.103 (64-bit) on a Mac.
Cmd-Opt-i to open console.
Click the button with three vertical dots and the very top right of the Developer Tools window.
Select: more tools > sensors:
If the console draw is not already open it will open. Either way there should now be a sensors tab next to the console tab on the console draw. Click this tab and follow your nose from there.
Note that this tab had an x by it. Hitting this will hide the sensors tab and next time you use it you will need to follow the steps above again to reinstate it.

Chrome DevTools Toggle Comment Shortcut not working

I started to use Chrome workspaces which is an awesome feature. Unfortunately the "toggle comment" shortcut (http://anti-code.com/devtools-cheatsheet/) "Cmd+/" is not working. When I press "Cmd+7" nothing happens or if the "switch panels" is on, then the panels switch. When pressing "Cmd + shift + 7" the help menu shows up from the top bar. How can I fix this. I really need this toggle comment shortcut.
There is a bug with some shortcuts that require to press a modifier key on non-english keyboard. I reported the issue here.
Workaround for Windows/Linux :
If you are using a german keyboard layout, pressing Ctrl + * should do the trick in the meantime. Make sure you use the * that is not on the numerical keyboard.
Workaround for Mac OS :
Use a keyboard layout editor, for example Ukelele, so as you can output a / without having to press Shift or any other modifier key.
I just checked that the shortcuts you are trying to use do actually work. I wrote the cheatsheet btw. The shortcuts work when you are using Chrome Canary, and you have to set up a workspace to work on the code that way. Also, Cmd+7 for me jumps to the 7th tab in my DevTools. Perhaps you have some other program overriding the shortcut key for that.
For more information on workspaces
There's also a more comprehensive list of shortcuts here.

How to remove all breakpoints in one step in Google Chrome?

How to remove all breakpoints in one step in Google Chrome? Using version 11.
[update]
There is now a feature request for this.
[update]
The feature request is closed (Dec 2011)!
This is now possible in Sources tab of Chrome Developer Tools.
Please see screen grab below and right click within the "Breakpoints" section of the left window.
Since recently (Chrome 18), you can right-click any breakpoint in the Breakpoints pane and voila! The "Remove All JavaScript Breakpoints" popup menu item!
Chrome Devtools crashed everytime I tried to access the Sources panel because of a breakpoint on a minified Javascript file.
To remove all breakpoints without access to the interface, you can do the following:
Open inspector-on-inspector : undock first inspector and hit ctrl+shift+i to open the second
On the inspector-on-inspector console, execute the following:
window.localStorage.breakpoints = [];
Close the inspectors and reload the page. Now the breakpoints are gone.
Under Sources, you can click button marked with red on picture below or use shortcut Ctrl + F8 just like tool tip is showing (activate / deactivate breakpoints). A little bit lower under 'Breakpoints' you will see all your breakpoints. If you choose to disable all, they will be grayed out.
solution here.
To purge all breakpoints open inspector on inspector (undock first
inspector and hit ctrl-shift-I to open the second) and run
"WebInspector.settings.domBreakpoints.set([])" in second inspector's
console.
new Tabs; Ctrl+Shift+J to Console; Access URL
Open the Chrome task manager and end the tab page.
Ctrl+Shift+J to Application -> Service Workers (Offiline) -> Refresh
to Sources Cancel Breakpoint
Success
Another option is to de-activate all break points using:
Ctrl + F8
In my case Uninstall and new installation of Chrome was without any success.
Also window.localStorage.clear() did not help.
My "last chance solution" is to remove entire directory where Chrome is storing its data.
First turn off your Chrome.
Then look at this path "c:\Users\ {your_user} \AppData\Local\Google\Chrome\User Data\Default\Local Storage\". Here try to delete all what is in this directory.
You can also clear all inspector settings and reload the inspector. It helped me with fantom breakpoint I could not remove in any other way. Open inspector and go to Preferences -> Sync -> Restore defaults and reload (at the bottom).
Step 1: Go to Developer tools and expand Breakpoint section
Step 2: Right click on expanded area of breakpint and there will be many options lik