google-chrome-devtools

How to bring up mobile keyboard in chrome dev tools?

£可爱£侵袭症+ 提交于 2019-11-27 18:04:19
问题 I'm trying to test which keyboard type comes up by default for certain inputs on iOS and Android. Is there a way to bring up the on screen keyboard in Chrome devtools phone simulator? So far I have tested the iOS version of my website by running the xcode simulator and pointing to my website but it would be really convenient to use devtools. Thanks! 回答1: Update: 🙁 Virtual keyboard support is deprecated in Chrome 68+; this answer no longer works. Original answer You can view the standard

Chrome DevTools Timeline Update Layer Tree Event

↘锁芯ラ 提交于 2019-11-27 17:59:40
I'm building animation/transition heavy web app with a lot of content. There are a lot of composition layers in the app since everything is moved/animated using css transforms. I'm trying to debug the app to find out rendering bottlenecks and I've noticed a lot of "Update Layer Tree" events in Chrome DevTools -> Timeline -> Frames mode like: Does anybody have an idea what could be causing this? What does "Update Layer Tree" exactly stand for? Alexander J. Ray First you have to understand what a Render Layer is. The Render Layer is the browsers representation of how to render that node and how

How do you save an entire folder from Google Chrome's Developer Tools' Sources tab?

倾然丶 夕夏残阳落幕 提交于 2019-11-27 17:41:31
In Google Chrome's Developer Tools' Sources tabs there is a left side panel which has three tabs with the first one being Sources. Is there a way to download a folder with multiple files and nested folders from this interface? You can right click individual files and 'Save as...' but this is cumbersome. Currently not possible. "Saving whole folders is not currently supported." https://github.com/GoogleChrome/devtools-docs/issues/30#issuecomment-76999063 It's not possible to do directly with Chrome, so I made a batching extension to automatically fetch resources to the Downloads folder. You can

Chrome Dev Tools - Modify javascript and reload

耗尽温柔 提交于 2019-11-27 16:48:51
Is it possible to modify the JavaScript of a page and then reload the page without reloading the modified JavaScript file (and thus losing modifications)? This is a bit of a work around, but one way you can achieve this is by adding a breakpoint at the start of the javascript file or block you want to manipulate. Then when you reload, the debugger will pause on that breakpoint, and you can make any changes you want to the source, save the file and then run the debugger through the modified code. But as everyone has said, next reload the changes will be gone - at least it let's you run some

Making HTTP Requests using Chrome Developer tools

爷,独闯天下 提交于 2019-11-27 16:42:43
Is there a way to make an HTTP request using the Chrome Developer tools without using a plugin like POSTER? Since the Fetch API is supported by Chrome (and most other browsers), it is now quite easy to make HTTP requests from the devtools console. To GET a JSON file for instance: fetch('https://jsonplaceholder.typicode.com/posts/1') .then(res => res.json()) .then(console.log) Or to POST a new resource: fetch('https://jsonplaceholder.typicode.com/posts', { method: 'POST', body: JSON.stringify({ title: 'foo', body: 'bar', userId: 1 }), headers: { 'Content-type': 'application/json; charset=UTF-8'

Inspecting Hover-state in Firebug or Chrome DevTools

社会主义新天地 提交于 2019-11-27 16:24:27
问题 I've got an HTML element that has a CSS hover-state. There's a bug with the margin or padding on hover and every time I mouseover, the contents of the element slide a little, its annoying. I'd like to debug using FireBug or Chrome Dev Tools, but a common problem I've had with these tools is that after I select the element from Firebug/devtools I obviously need to move the mouse back to the dev tools and the hover state is no longer enabled. How do I inspect/debug an HTML element using these

Chrome Typescript debugging references wrong 'this'

血红的双手。 提交于 2019-11-27 16:12:14
Sometimes when I hit a breakpoint in the Chrome Developer Tools, the TypeScript this is actually _this in the JavaScript. I have to manually put _this in the console to see what is actually being used. Is there a way to fix this? the TypeScript this is actually _this in the JavaScript This is due to a bug in the sourcemaps. You can track it here : https://github.com/Microsoft/TypeScript/issues/2859 来源: https://stackoverflow.com/questions/31346989/chrome-typescript-debugging-references-wrong-this

Source map is not visible at Chrome network tab

老子叫甜甜 提交于 2019-11-27 15:54:18
问题 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? 回答1: There is a way to get this information by searching for "map" in chrome://net-internals/#events 回答2: 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

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

安稳与你 提交于 2019-11-27 15:29:05
问题 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... 回答1: 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. 回答2: From the posted bug: "https://code.google.com/p/chromium/issues/detail?id=282493". If you hold keyboard Control (Ctrl)

Chrome Developer Tools unresponsive since update 32.0.1700.76 m

萝らか妹 提交于 2019-11-27 15:27:26
问题 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. 回答1: It is a known bug that got pushed with v32. I have not seen