google-chrome-devtools

Keyboard shortcut to switch focus from web developer tools to page in Chrome

牧云@^-^@ 提交于 2019-11-27 09:58:43
问题 I use Vimium for Chrome, which allows me to refresh with the r key. When I am using the dev tools I lose focus of the page, and have to click in the page in order to use r again (though I would obviously just refresh with the button). Does anyone know of a keyboard shortcut to switch from the dev tools back to the page? I know you can use cmd [ to switch panes inside of the dev tools, but can't find a way to switch back to the page. 回答1: When Chrome DevTools is focused, Shift + F6 will focus

Freeze screen in chrome debugger / DevTools panel for popover inspection?

谁说我不能喝 提交于 2019-11-27 09:56:13
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. Got it working. Here was my procedure: Browse to the desired page Open the dev console - F12 on Windows/Linux or option + ⌘ + J on OSX Select the Sources tab in chrome inspector In the web browser window, hover over the desired element to initiate the popover Hit F8 on Windows

How to find what code is run by a button/element in Chrome using Developer Tools

谁说我不能喝 提交于 2019-11-27 09:55:49
I'm using Chrome and my own website. What I know from the inside: 1 ) I have a form where people sign up by clicking this orange image-button: 2 ) I inspect it, and this is all it is: <img class="formSend" src="images/botoninscribirse2.png"> 3 ) At the top of the source code, there are tons of script sources. Of course, I know which one the button calls, I coded it : <script src="js/jquery2.js" type="text/javascript"></script> 4 ) Within that file, you could find: $(".formSend").click(function() { ... }); which is what is triggered by the button (to do a fairly complex form validation and

What is shadow root

寵の児 提交于 2019-11-27 09:50:06
问题 In Google Chrome’s Developer Tools, I see a #shadow-root right under <html lang="en"> tag. what does it do and what is it used for? I don’t see it in Firefox nor in IE; only in Chrome, is this a special feature? If I open it, it shows <head> and <body> and a link beside named reveal , by clicking, it points to the <head> and <body> , nothing else. 回答1: This is a special indicator that a Shadow DOM exists. These have existed for years, but developers have never been given APIs into it until

Chrome: API for performance data

可紊 提交于 2019-11-27 09:48:48
Problem Descritpion How can I access the data from the Chrome Performance tool either from the browser console or using Chrome driver methods when using Selenium? In particular, I am interested in getting the page loading time . On the top diagrams I can see that the last elements were loaded around 1700-1800 ms mark. The event log in the bottom shows that the last element started loading (and finished in a few ms) at 1720.1 ms from the time the page was reloaded. What I Tried So Far I tried using Performance Timing interface like this: console.log(performance.timing.loadEventEnd - performance

Chrome Developer Tools: Best resource for learning advanced features?

自闭症网瘾萝莉.ら 提交于 2019-11-27 09:35:39
问题 I casually use Chrome developer tools for debugging AJAX & JavaScript. Mostly that means the console to check on element/variable/method state, occasionally 'network' tab to debug issues fed through ajax, very occasionally break points in debugger if I can't hunt down a JS bug. But any time a dedicated front-end developer (I'm back end) uses the same tools in front of me, they use these nifty & abstract little features that always leave me thinking "damn, why didn't I know about that"? ...So,

Write JavaScript in Chrome developer tools

安稳与你 提交于 2019-11-27 09:25:54
问题 In Firebug, I can type my own JavaScript in the console tab and execute it. Is there a way to type JavaScript in Chrome Developer Tools and execute it? 回答1: Go to chrome://flags/ , enable the "Enable Developer Tools experiments" flag and restart Chrome (or start it with the --enable-devtools-experiments command-line flag.) Open DevTools, go to the Settings dialog, switch to the Experiments tab. Enable the "Snippets support" experiment, close and reopen DevTools. Go to the Sources panel. In

Is there a way to filter network requests using Google Chrome developer tools?

[亡魂溺海] 提交于 2019-11-27 09:15:43
问题 Is it possible to filter out some requests using Chrome developer tools, say, filter out all image requests? 回答1: There isn't a very flexible filtering feature, but the bar at the bottom does allow you to only show requests of a certain document or connection type: You can't just exclude images, but it should help. You can also press Control / Command + F to search for a particular string in the request list, and check the "filter" box to hide requests that don't match: 回答2: Negative text

How to force Chrome's script debugger to reload javascript?

北慕城南 提交于 2019-11-27 09:00:33
问题 I really like the ability to edit javascript in the chrome debugger however, I find that it can be really problematic getting the debugger to re-fetch the JavaScript from the server. Sometimes I have to go as far just closing the debugger and reloading the frame works OK - but other times (an dI cannot pin down under what conditions this occurs) I have to clear my temporary internet cache. Sometimes I swear I have to close chrome completely, then clear the cache and then load the page before

Chrome Dev Tools: How to trace network for a link that opens a new tab?

我与影子孤独终老i 提交于 2019-11-27 08:58:43
问题 I want to trace the network activity that happens when I click on a link. The problem is that the link opens a new tab, and apparently the Dev Tools works per tab it was open for. "Preserve Log Upon Navigation" does not help. My current solution is to move to FireFox and HttpFox which does not have this issue. I wonder how all the developers for Chrome manage, this sounds pretty basic (of course I've searched for the answer, didn't find anything helpful). 回答1: Check out chrome://net-internals