google-chrome-devtools

stopEventPropagation not working on mobile safari or chrome dev tools emulation

大憨熊 提交于 2019-12-24 16:26:28
问题 Use case; click on marker opens infowindow, click on map closes it. stopEventPropagation is used to prevent that marker click propagates to the map (click on map would close the infowindow), this works fine in chrome, but in mobile safari (iphone 5) or chrome itself emulating the same phone, the event isn't stopped (thus the infobox not shown, or inmediatelly closed). function stopEventPropagation(e) { var evt = e ? e : window.event; evt.cancelBubble = true; if (evt.stop) evt.stop(); if (evt

ChromeDriver hanging sporadically, DevTools request failed. Chrome not reachable error

自闭症网瘾萝莉.ら 提交于 2019-12-24 10:35:04
问题 Tests fail sporadically with the error of "Chrome not reachable". Throwing a WebDriver exception: chrome not reachable (Driver info: chromedriver=2.35.528161 (5b82f2d2aae0ca24b877009200ced9065a772e73),platform=Windows NT 6.1.7601 SP1 x86_64) (WARNING: The server did not provide any stacktrace information) Command duration or timeout: 60.26 seconds Build info: version: '3.7.1', revision: '8a0099a', time: '2017-11-06T21:01:39.354Z' System info: host: 'XXXXXXXX', ip: 'XXXXXXXXX', os.name:

Chrome devtools - Throttle network after page load

大兔子大兔子 提交于 2019-12-24 10:25:34
问题 I'd like to test my webpages loading steps, but as I'm lazy, I would love to avoid changing the throttling settings every time after my page has been loaded. Here would be the perfect flow: page loads without throttling after this load, all requests are slowed down with +/- 10s ping This way, I wouldn't have to change throttling for page reloading during dev but I still have really slow to test my loader steps. 来源: https://stackoverflow.com/questions/52790399/chrome-devtools-throttle-network

What does 'opcode -1' mean in Chrome?

若如初见. 提交于 2019-12-24 06:55:29
问题 I'm using Chrome browser and I'm trying to create a WebSocket connection (using javascript) but sometimes I get an error. When I'm looking in Developer Tools for the WS connection, I see OPCODE -1. What does this mean? 回答1: WebSocket OPCODEs describe how to interpret the frame. The OPCODES are formally between 0-10, OPCODE -1 says "not frame that can be used": https://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API/Writing_WebSocket_servers#Exchanging_Data_Frames https://tools.ietf

Emulate low resolution device on the chrome dev tool

旧时模样 提交于 2019-12-24 06:20:49
问题 I need to test the Ionic 3 app on a low-resolution device. But I don't have a low-resolution device.Can you tell me how to do that in the chrome dev tools? Low-Resolution device: Zte Screen Size: 5.0 Inches, 480 x 854 pixels 回答1: As specified in the comments, the pixel density is 196PPI . The device pixel ratio = 196/150=~1.3 The logical resolution is screen size in pixels/dpr i.e. (480x854)/1.3 = (369×657) width and height . 来源: https://stackoverflow.com/questions/47117951/emulate-low

How can I debug my MVC3 site with Chrome?

╄→尐↘猪︶ㄣ 提交于 2019-12-24 04:54:08
问题 I'm building an ASP.NET MVC3 website. I have some javascript in my .cshtml file: <div>hello!</div> <script type="text/javascript"> $(document).ready(function () { alert("ready!"); }) </script> Google Chrome's built-in debugger doesn't see this javascript snippet, so I can't debug it. How can I set a breakpoint in this javascript snippet in Google Chrome's built-in debugger? 回答1: Weird, works great for me: Go to the Scripts tab You will see a dropdown list of all referenced javascript files,

Chrome Developer Tools console - inspect JavaScript object

耗尽温柔 提交于 2019-12-24 04:44:07
问题 In the old version of Chrome (not sure which version, I know it was quite some time ago), I could type the following into a console using the Chrome Developer Tools, and it would give me all associated properties of the newly created object: document.createElement('a'); Now, when I do the same, I'm given very little back, and I can barely do anything with the returned item in the console, whereas I would just like to inspect it. How do I view all the properties of this element, etc. as with

Automate “Save as HAR with Content”

心不动则不痛 提交于 2019-12-24 02:17:31
问题 I am familiar with how to use the Google Chrome Web Inspector to manually save a webpage as a HAR file with the content. I would like to automate this. In my searches for tools to automate the generation of a HAR file, I have found some solutions, but none of them save the content of the resources. I have tried the following without any luck: https://github.com/ariya/phantomjs/blob/master/examples/netsniff.js https://github.com/cyrus-and/chrome-har-capturer Getting the content of the page you

React-router-redux takes two clicks on a Link to update location state

旧城冷巷雨未停 提交于 2019-12-24 01:57:10
问题 I have an issue with my app that I cannot find solution for anywhere. I use react-router-redux and syncHistoryWithStore . When I click on my navigation to change a route using Link the new route loads, URL in the browser updates, however the location state doesn't update unless I click the Link two times. UPDATE: I've noticed it might have something to do with Chrome React DevTools. If I open the React Devtools and select provider then unwrap the components tree one at a time, the location

Chrome console doesn't work for variables in node-inspector browser UI. How to enable?

谁说我不能喝 提交于 2019-12-24 01:23:38
问题 Steps to reproduce. Filename is index.js and its contents: 'use strict'; debugger; let a = 10; // doesn't mean anything in regards to the issue. Run node-debug against the file. $ node-debug index.js Node Inspector v0.12.8 Visit http://127.0.0.1:8080/?port=5858 to start debugging. Debugging `index.js` Debugger listening on [::]:5858 It opens UI in Chrome and the execution is stopped on debugger line. Set a watch variable process in a Watch Expression section. It is possible to examine it