google-chrome-devtools

How to inspect CSS element using chrome?

ε祈祈猫儿з 提交于 2019-11-29 04:37:01
I am trying to figure out how to inspect an element using Chrome. Now I know how to inspect an element, but how do I inspect a button's functions, like hover and active as well. I am trying to inspect the Youtube's sign-in button on the top left of the page. I got the hover attributes, but how do I inspect the link and active state attributes? When you're inspecting the element, in the styles tab, there's a "toggle element state" button. Click it to apply various pseudo-states: Just right click anywhere on a page and choose "Inspect element" from the menu. Chrome has a graphical tool for

How to use console.log() to debug a Chrome extension?

给你一囗甜甜゛ 提交于 2019-11-29 02:37:01
问题 I'm trying to debug my Chrome extension using console.log("message"); My extension works fine (for the most part), I'm clicking buttons that call function which perform something. Every function as a consloe.log() debug line. If I open the chrome console (ctrl + shift + i) after chrome loads, it remains empty, no matter what I do. Chrome is set to developer mode. 回答1: Make sure that you are opening the correct dev console. You need to go to the generated background page for the background

How to debug a Kiosk Chrome application running on a Chromebox?

一曲冷凌霜 提交于 2019-11-29 02:31:50
问题 A Chrome Kiosk application that I wrote has a problem only when running in Kiosk mode on a Chromebox. When staring the application manually after I log into the Chromebox it runs well. Also when testing the application on my development machine everything works well. How can I attach a remote debug session, write remote logging information or in any other way get debugging information from the Kiosk application on the Chromebox to my development machine? 回答1: If you run Chrome with the -

How to get the average FPS in chrome devtools

天涯浪子 提交于 2019-11-29 02:18:09
I want to retrieve the average fps of the measured performance recording. So far I'm only able to get the duration and fps per frame by either hovering over the frame like this: or by selecting the frame: To get the average fps of all frames, I would have to sum and count them one by one by hand, which is quite inconvenient. Firefox devtools for example displays the average fps at the top right of the panel. You can use devtools-for-devtools. Switch devtools to detached window mode (click devtools settings icon, click "undock" icon). Next time you can simply press Ctrl - Shift - D to toggle

Break when style has changed in Chrome Dev Tools

萝らか妹 提交于 2019-11-29 02:10:15
问题 I just wonder if anyone know if it's possible to add a break point on a specific css property on a specific element in Chrome Dev Tools, i.e when #mydiv's height property has changed, break. 回答1: You can only break on all inline style ( <div style="height: 20px; width: 100%"> ) changes using the Elements panel context menu's Break on... | Attributes modifications . 回答2: You can do it this way: function observe(el, property) { var MutationObserver = window.WebKitMutationObserver; var observer

Copying HTML code in Google Chrome's inspect element

你离开我真会死。 提交于 2019-11-29 02:09:54
问题 I have a website of wich I want to copy an HTML code from - how do I copy all the text in inspect element - so I don't get the website's HTML code, but the code that I have already changed so that I don't have elements I don't want in my own webpage? 回答1: Do the following: Select the top most element, you want to copy. (To copy all, select <html> ) Right click. Select Edit as HTML New sub-window opens up with the HTML text. This is your chance. Press CTRL+A/CTRL+C and copy the entire text

Source map is not visible at Chrome network tab

Deadly 提交于 2019-11-29 01:25:09
Before Google Chrome update I saw source map files at Chrome Devtools on Network tab. Now, after update to version 43.0.2357.134 m I don't see them. Maybe my code is wrong? Or it's done intentionally to hide those source maps? Now (1/10/2016) it looks like there is a way to get this information by searching for "map" in chrome://net-internals/#events This was a side-effect of fixing bug 362913 which was a feature request being tracked in issue 465032 . If you have a need for seeing the map files then please file a new issue for it and explain the use-case for why you need it. 来源: https:/

How do I search through scope variables in Google Chrome Developer Tools?

倖福魔咒の 提交于 2019-11-29 01:21:08
I set a breakpoint in a javascript function with Google Chrome Developer Tools. I am looking for a variable in the scope variables of the function with the value "Fred." How do I search for this value amongst the variables within the scope of the function? You can set a breakpoint within Chrome DevTools on a particular line, that's within the scope/context of said variable. When browser execution reaches the breakpoint, you'll have access to all variable/functions within its, and the global, scope. You could also utilize Chrome's console and output any variable that's accessible within the

Chrome “Developer Tools” element - hide annoying yellow dimensions box

☆樱花仙子☆ 提交于 2019-11-29 00:56:17
How do I hide the annoying yellow box that appears under html fields when I hover over elements in the Chrome "Developer Tools" elements panel - it's driving me nuts as I can't see the bottom of my labels etc... Alexander Pavlov You might want to check Chrome 16 which got an improved element tooltip. Please comment on the bug and mention specific issues that you want to get fixed. Brandon From the posted bug: " https://code.google.com/p/chromium/issues/detail?id=282493 ". If you hold keyboard Control (Ctrl) key before hovering the element (or command on a mac) the tooltip won't show. Not the

Chrome Developer Tools unresponsive since update 32.0.1700.76 m

ぃ、小莉子 提交于 2019-11-29 00:52:56
Chrome itself appears to work fine but I'm having problems with Developers Tools. After a short period of time it becomes unresponsive and the following dialog pops up... Is this a known bug, can or will it be fixed soon? Also, the meantime what should I do, how can I roll back to older working version of Chrome? I use Chrome and Developer Tools extensively and this is causing a major headache, so any advise would be welcome. It is a known bug that got pushed with v32. I have not seen anything about fixing it yet though. It happens with any model window (which includes devtools) or when Chrome