google-chrome-devtools

HTML Body says cz-shortcut-listen=“true” with Chrome's Developer Tools?

此生再无相见时 提交于 2019-12-02 21:31:58
I was testing some HTML code I'm making, and while using the Developer Tools on Google Chrome version 22.0.1229.94 m, I saw the <body> tag has the attribute cz-shortcut-listen="true" (which of course is not on my code). What does it mean and why is it showing up? (I tried looking it up in google, but found nothing relevant) It's being added by the Colorzilla browser extension. https://twitter.com/brianpemberton/status/201455628143689728 来源: https://stackoverflow.com/questions/13147210/html-body-says-cz-shortcut-listen-true-with-chromes-developer-tools

Why console don't show methods of jQuery object returned from selector?

北慕城南 提交于 2019-12-02 21:15:51
问题 I know that if I type: $('body'); I get a jQuery object. However on chrome's console I'll only see the internal array of the jQuery object, despite the fact that jQuery methods are accessible like $('body').hide(); Why the console don't show me all the accessible methods and how did jQuery manage to do this magic? If it's just because these methods are defined on a prototype, then how come when I write these lines: function Person(){this.myProp = 'test'}; var person = new Person(); Person

Open console source mapped file in external editor

∥☆過路亽.° 提交于 2019-12-02 20:19:48
When you use source maps on errors, the Chrome Developer Tools console shows links to the source file. Is there a way to open these links in an external application (editor)? For instance, on click or CTRL+click or... Kirk Strobeck Unfortunately, this isn’t possible yet. Here are some links that may help: http://sokolovstas.github.io/SublimeWebInspector/ https://developers.google.com/web/tools/setup/setup-workflow?hl=en https://www.sitepoint.com/edit-source-files-in-chrome/ https://gregrickaby.com/2013/07/turn-chrome-developer-tools-into-an-ide/ Sublime text 3 and Web Inspector plugin https:/

Debugging with chrome with es6

淺唱寂寞╮ 提交于 2019-12-02 20:14:33
I am trying to use Ecmascript 2015 for my project and I am finding it hard to add breakpoints at specific places (places I thought was logical to have a breakpoint). I have #enable-javascript-harmony flag in chrome set to true (if that helps), but I am using babeljs to transpile and have sourcemaps to directly set breakpoints in the file that I want to debug. I am most certain that I am doing something wrong but can somebody point me where I am making mistake. For reference I have added a GIF of what I am talking about. The problem is with source code (via source maps) to real code mapping.

Chrome's map to file system resource not working after update

℡╲_俬逩灬. 提交于 2019-12-02 20:13:25
I can add a folder to the workspace (which doesn't seem to do anything, as far as I can tell), but the "map to file system resource" option seems to have been removed, and I can no longer live-edit css files. Is this a bug, or has the process for mapping css files been changed? This talk ( https://developers.google.com/web/updates/2017/10/devtools-release-notes ) says that the new version uses "magic" to map remote files to local ones, but I can't seem to get it to work at all. For reference, I'm trying to map a reddit css file to one on my own computer. It worked fine on a previous version of

How to force Chrome debugging tools to debug in pretty code?

筅森魡賤 提交于 2019-12-02 20:11:15
Although I used pretty code and had set up the breakpoints in "Pretty code" tab, debugger keeps working in minified code. (I can't see exactly where I am and need to continuously switch between source and "pretty code"). On same pages with same script it sometimes work and sometimes don't. I can't find the cause or any difference in the way I activate it. Is there any way to force debugger to use "pretty code"? Any Ideas or additional questions? Should this be reported as a bug? EDIT: I still don't understand what is going on but there is a fix for it. So when this situation happens, just edit

How to simulate pinch zoom in Google Chrome?

倾然丶 夕夏残阳落幕 提交于 2019-12-02 20:08:41
I'm developing a pinch zoom feature for a mobile app written in javascript and I want to test this in Google Chrome with the mobile device emulation feature. But I cannot find a way to test a pinch gesture. I tried everything I could find on the internet (pressing Shift and moving the mouse, pressing Alt and moving the mouse), but none of this worked. Is there even a "native" way in Google Chrome to simulate a pinch zoom gesture? btw I'm using the MacOs version of Google Chrome version 59.0.3071.86 Shift + mouse click & drag across the viewport Works for me. Only problem is that the touchstart

Is it possible to blackbox all VM scripts in chrome debugger?

别等时光非礼了梦想. 提交于 2019-12-02 20:08:23
I'm trying to debug quite a complicated module in my angular app. I've set a break point at the start of a particular method hoping I could follow it through and see where it's giving me back an error. However, it keeps bringing me into the VM scripts (VM28337, VM30559, etc). I can assume these all work as they should, so I have no interest in seeing them. I know I can blackbox certain scripts in chrome debugger, but there seems to be an endless amount of these VM scripts. Does anyone have any suggestions on how to circumvent these scripts? This doesn't appear to be possible in any version of

Chrome Devtools Coverage: how to save or capture code used code?

雨燕双飞 提交于 2019-12-02 20:07:34
The Coverage tool is good at finding used and unused code. However, there doesn't appear to be a way to save or export only the used code. Even hiding unused code would be helpful. I'm attempting to reduce the amount of Bootstrap CSS in my application; the file is more than 7000 lines. The only way to get just the used code is to carefully scroll thru the file, look for green sections, then copy that code to a new file. It's time-consuming and unreliable. Is there a different way? Chrome 60 does not seem to have added this functionality. stereobooster You can do this with puppeteer (async () =

How to show mouse pointer in responsive mode?

浪尽此生 提交于 2019-12-02 19:56:26
I used to be able to uncheck a checkbox that said Emulate touch screen in the Emulation/Sensors -panel so that I could see a mouse pointer when using responsive mode. This panel is now gone, and the new sensors-panel doesn't have this setting. This makes it impossible to use the responsive mode, as I have no pointer and no control where I touch/click (who designed this feature?!). How can I see a pointer/mouse when I use responsive mode in newer Chrome? Apparently, you're supposed to see a circle as your mouse when using responsive mode. I have never seen that, even using several different