google-chrome-devtools

How do I enable Chrome DevTools Experiments?

对着背影说爱祢 提交于 2019-12-05 02:52:36
I've just installed Google Canary on my Mac. I want to have a play with the Experiments in the google developer tools. But I can't for the life of me find where/how to enable them. I specifically want to look at using/editing SASS in the browser. Thanks dave magicspon Found it In chrome go to chrome://flags and enable it there. Go to chrome://flags . Find Developer Tools Experiments . Enable it. Click Relaunch Now to relaunch Chrome. In the DevTools settings, there's now a new Experiments tab. Cheers 来源: https://stackoverflow.com/questions/15679579/how-do-i-enable-chrome-devtools-experiments

Why does Google Chrome group identical console.log messages?

白昼怎懂夜的黑 提交于 2019-12-05 01:59:41
I've been looking everywhere trying to find a way to modify the behavior of the developer tools console logging in Google Chrome. I've come up short. The console, by default, does not show each and every time logged. It appears to be keeping a tally of the number of times that the same message is sent to the log. This does not help when you are logging items to verify or debug workflow in a web application. If I were to log: 1 2 1 1 2 3 I expect to see just that, but what you get is more like: (3) 1 (2) 2 3 Is there any way to change this behavior and force the console to show you each and

Why can't I expand this event object in the chrome console?

余生颓废 提交于 2019-12-05 01:48:15
Simplified, what I'm doing is running this in the console: window.onbeforeunload = function (e) { console.log(e); } But in the console, when the event fires (by trying to "leave page" in the middle of writing an SO question) what I see is this: Event {clipboardData: undefined, cancelBubble: false, returnValue: true, srcElement: document, defaultPrevented: false…} With a little "i" graphic next to it. When I click the arrow next to it to expand the object in the console, nothing happens. The arrow turns to indicate that it has expanded, but it doesn't expand. What am I missing here?? Paul S.

Android USB Debugging Port Forward Error

跟風遠走 提交于 2019-12-05 01:38:24
I am having a problem with the android remote debug port forwarding. I need to get ports in the 44300-44399 range forward because visual studio debugging only allows SSL on those ports, but I can never get those ports to forward even though the documentation says it should work on any port from 1024-65535. Anyone encountered this or know how I can figure out why the port isn't forwarded? I know the connection is there since other ports work ok. I found this in the Chromium source . Apparently only 1024-10000 is allowed despite the docs in chrome saying otherwise. Checking to see if they are

How to copy Request Payload in Chrome on Mac?

本秂侑毒 提交于 2019-12-05 01:20:00
Recently I'm not able to copy a parsed request payload from Chrome DevTools . Button is disabled. I'm able to copy normal POST and GET request but not a parsed JSON payload. This is huge pain in the ... Anyone know the solution for it? Came to your question having the same problem. My solution: Select the text with your mouse pointer and make sure you are not selecting more than the whole content, then try again. I was selecting more than the contents by triple clicking it and it wouldn't let me copy, probably a bug in chrome. you can switch between view-source and view-parsed. They are

Emulate iPhone X on Chrome

偶尔善良 提交于 2019-12-05 00:37:00
问题 I need to emulate an iPhone X on Chrome. I have found the info below: Height: 5.65 inches (143.6 mm) Width: 2.79 inches (70.9 mm) Can you tell me which values should I give to the form below? iPhone X sepecifications This is what Device pixel ratio (DPR) is If you want to emulate a Retina device from a non-Retina machine or vice versa, adjust the Device pixel ratio. The device pixel ratio (DPR) is the ratio between logical pixels and physical pixels. Devices with Retina displays, such as the

No paint profiler in Chrome DevTools

两盒软妹~` 提交于 2019-12-05 00:19:41
I'm trying to use the Chrome devtools timeline to improve animation performances, but I can't find the Paint Profiler . I recorded some seconds of an animation and then clicked on a paint event in the timeline, as described here, basically: https://developers.google.com/web/tools/chrome-devtools/profile/evaluate-performance/timeline-tool#profile-painting But I don't see any Paint Profiler tab. Here's how I see the console window: I'm using Google Chrome Version 51.0.2704.106 (64-bit), on a Mac Updated at 20190316 The feature is still existing confirmed in Version 72.0.3626.121 (Official Build)

How to set a breakpoint at a lambda call in Google Chrome DevTools?

て烟熏妆下的殇ゞ 提交于 2019-12-05 00:13:05
I use Babel and Google Chrome Developer Tools with JavaScript source maps enabled. Given this code function myFunc(elements) { return elements .map(element => element.value) .filter(value => value >= 0); } how can I pause execution at execution of lambda function element => element.value ? If I set a breakpoint at line of .map(element => element.value) it will only pause when map is executed, but not when the lambda function is executed. This feature is finally available (at least in Google Chrome 58). Click on the line number of the line of your lambda you like to debug (here line 3). Then

How to find out the source of a request (in chrome dev tools)?

那年仲夏 提交于 2019-12-04 23:56:13
I have a weird network request in my page, which refers to JavaScript files, which I removed from every html file earlier. Cache is cleared and there is no single reference to be found in the source html and the JavaScript files. For fixing that and also out of general curiosity I would like to know if there is a simple way to find out where a request was triggered, preferably using the chrome-devtools. Update: Thanks to jaredwilli I found the initator column under the network-tab. However this only shows Other . What I would like to know, is the (html or javascript) file where those Requests

Chrome dev tools loses network history

女生的网名这么多〃 提交于 2019-12-04 22:41:59
The Network tab in Google Chrome developer tools is great but seems to lose all history on certain form posts. Is there any way to get it to retain network history? If not is there another tool I could use? The "Preserve Log upon Navigation" status bar button in the Network panel should solve the issue. Is there any way to get it to retain network history? Yes and No.It depends what you need. You can try Preserve Log status bar button in the Network panel. It do NOT retain all the network history. It may solve your problems if you are lucky. It may not retain the network history you want.