google-chrome-devtools

Google Chrome Developer Tools - disable black emulation options ruler

你。 提交于 2019-11-27 19:15:55
问题 In Google Chrome version 38+, there's a new black ruler with Device emulation options. Does anyone know how to disable this? 回答1: You can hide it by toggling the "Device Mode" button. I'm on Chrome 38 on OSX if that matters. Note that the rulers will still show up if you need to do Device emulation. This is from the Chrome Developer docs: https://developer.chrome.com/devtools/docs/device-mode Windows: Ctrl + Shift + M Mac: Cmd + Shift + M 回答2: In version 44+: In the main Dev tool window,

How to use Postman Interceptor

谁说胖子不能爱 提交于 2019-11-27 18:56:17
Ever since I upgraded to Postman 0.9.6 I can't replicate user sessions because chrome doesn't allow postman to get user cookies. However, they have decided to "work around" this issue by created another plugin called Postman Interceptor that routes your postman request and grabs the user cookies. They wrote a blog post about this wonderful tool here: http://blog.getpostman.com/index.php/2014/02/11/postman-v0-9-6-access-cookies-and-restricted-headers-plus-better-testing/ However, I can't seem to figure out how to get this thing to work. I have been trying for an hour now, and it still won't see

How can I inspect and tweak :before and :after pseudo-elements in-browser?

 ̄綄美尐妖づ 提交于 2019-11-27 18:54:36
I have created some fairly elaborate DOM elements with an :after pseudo-element, and I'd like to be able to inspect and tweak them in either Chrome Inspector or Firebug or equivalent. Despite this feature being mentioned in this WebKit/Safari blog post (dated 2010), I can't find this feature at all in either Chrome or Safari. Chrome does at least have checkboxes to inspect :hover, :visited and :active states, but :before and :after are nowhere to be seen. Additionally, this blog post (dated 2009!) mentions this capability exists in the IE dev tools, but I'm currently using Mac OS, so this is

Chrome remote debugging doesn't work with IP

谁说我不能喝 提交于 2019-11-27 18:48:48
I'm trying to remote debugg a chrome instance using the remote debug option in chrome: chrome.exe --remote-debugging-port=1337 as described on google page: http://code.google.com/chrome/devtools/docs/remote-debugging.html the problem is when i try to access it using IP it doesn't work, while testing it with localhost:1337 does work. any idea? You can setup an SSH tunnel in order to debug remotely. On the source machine execute: ssh -L 0.0.0.0:9223:localhost:9222 localhost -N Then on the other machine point Chrome browser to http://source-machine-ip : 9223 I don't think Chrome accepts

How to inspect CSS element using chrome?

我与影子孤独终老i 提交于 2019-11-27 18:34:44
问题 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? 回答1: When you're inspecting the element, in the styles tab, there's a "toggle element state" button. Click it to apply various pseudo-states: 回答2: Just

Chrome DevTools search all javascript files in website

大兔子大兔子 提交于 2019-11-27 18:23:40
I'm working on a new client's website that loads Javascript from a CDN so the Javascript is not embedded or inline with the webpage source. I would like to pause everytime getCurrentPosition() is executed in order to determine which external JS file it is contained in. I realize I could use other tools to do a string search through the contents of the JS files but I would rather keep to Chrome's debugging tools. Should I be trying to create a watch expression or is there another way to pin down when and where a certain JS function is fired? You can search in all files using Chrome DevTools.

How to inspect Canvas Frames

大憨熊 提交于 2019-11-27 18:20:30
问题 I just saw this link, about how to inspect "Canvas frames" on Chrome Dev Tools, but how to do it on Chrome extensions? I think that the chrome.debugger.sendCommand method should be used here. How to do it on Chrome Extensions? EDIT: I usually want to inspect these data using Chrome's debugger or some similar method, without interacting with the JavaScript's code. 回答1: The experimental Canvas inspection feature was removed from Chrome 44 (crbug.com/475808). It was implemented by capturing

Chrome Dev Tools : view all event listeners used in the page

夙愿已清 提交于 2019-11-27 18:16:46
问题 Is there a feature in chrome dev tools(or any extension) by which I can view all the event listeners that are used on a certain page/app. Edit: Its certainly not a duplicate of this question : How do I view events fired on an element in Chrome DevTools? The above question explains how to look for a particular event that gets fired when we interact with our app ( I am aware of how to do that!). What I am looking for is the List of all the events that we are listening to in the app and which

How to use chrome web inspector to view hover code

我是研究僧i 提交于 2019-11-27 18:13:59
Using chromes web inspector to view code is very useful. But how do you view for example the hover code for a button? You will have to hover the mouse over the button and thus cannot use it (mouse) in the inspector. Are there any shortcuts or other ways to accomplish this in the inspector? Travis Northcutt Now you can see both the pseudo-class style rules and force them on elements. To see the rules like :hover in the Styles pane click the small dotted box button in the top right. To force an element into :hover state, right click it. Alternatively, you can use Event Listener Breakpoints

Chrome not showing OPTIONS requests in Network tab

两盒软妹~` 提交于 2019-11-27 18:07:37
问题 My web client application is setting HTTP POST requests via fetch API. I see that OPTIONS preflight requests are sent via debugging proxy (Charles Proxy), but they are not displayed in Google Chrome Developer Tools\Network tab. I don't have any filters setup on the network tab. I remember OPTIONS requests being visible there, but not anymore. How do I bring them back? 回答1: You'll need to go to: chrome://flags/#out-of-blink-cors, disable the flag, and restart Chrome. This is an expected