google-chrome-devtools

Why am I getting “event.returnValue is deprecated…” and how can I rectify it? [duplicate]

不想你离开。 提交于 2019-12-12 11:53:08
问题 This question already has answers here : event.returnValue is deprecated. Please use the standard event.preventDefault() instead (7 answers) Closed 6 years ago . In my web site, when I F12 from the browser, I see in the console (Chrome Dev Tools) the error/warning, " event.returnValue is deprecated. Please use the standard event.preventDefault() instead. " Yet I search my project for " event.returnValue " and it turns up no instances of that string. Assuming it is some Microsoft or jQuery

How to add rel=“preconnect” to tags other than link?

≡放荡痞女 提交于 2019-12-12 11:48:42
问题 I am using Chrome Dev Tools to audit my site's homepage. And it gives one of the opportunities "Preconnect to required origins" for the facebook, twitter and linkedin share button in my homepage. I read the google article about preconnect and dns-prefetch at https://developers.google.com/web/fundamentals/performance/resource-prioritization , but find the syntax is only for link tag, as below: But in my home page, the share buttons that will connect to the social sites are looks like this:

Saving chrome timeline data via javascript api

£可爱£侵袭症+ 提交于 2019-12-12 11:41:20
问题 Starting and stopping the dev tools timeline is easy: console.timeline("timeline1"); console.timelineEnd(); I am looking for a way to extract the data from a timeline and post it to a server. Or trigger the browsers 'save timeline data'. I want to collect timeline data from peoples machines while they test a web application. Is this possible? Thanks. 回答1: This data might be available in an extension, but unfortunately it's not available in standard Javascript. Also, as mentioned before

Chrome: Print exception details to console

大城市里の小女人 提交于 2019-12-12 11:06:15
问题 How do I print the stack trace of an Exception in the chrome devtools from my code? I tried the following: function doSomething() { undefined(); // This throws an exception } try { doSomething(); } catch (e) { console.error("Exception thrown", e); } But this yields the following result: Exception thrown TypeError {} And if I expand the arrow next to it, it points me to the line where the console.error() call was made, so I don't get to see where the original error actually happened. What

Brunch source mapping: not hitting breakpoints in Chrome devtools

亡梦爱人 提交于 2019-12-12 10:57:04
问题 I'm using the default source mapping built into Brunch. I see the files fine, but I cannot hit breakpoints within the source mapped files. Using the Javascript access to the debugger via debugger; works, which leads me to believe it's something wrong with the Brunch side of things. Here is my brunch-config.js: module.exports = { files: { javascripts: { joinTo: { 'js/vendor.js': /^(?!source\/)/, 'js/app.js': /^source\// }, entryPoints: { 'source/scripts/app.jsx': 'js/app.js' }, order: { before

How can I view the DOM while I am stepping through JavaScript breakpoints in Chrome?

牧云@^-^@ 提交于 2019-12-12 10:33:36
问题 In Chrome DevTools, while debugging JavaScript in the Sources tab(adding the "debugger;" line in JS code and then stepping through the code using F10/F11), how can I view the DOM while stepping through the code? If my JS is manipulating the DOM, it is very common that I need to step through the JS debugger and watch how the DOM elements are modified by my JS. For example, I might have to see how elements are being moved, whether they are being removed when they are supposed to, whether they

'Failed to get tabs for debugging' when trying to debug NodeJs with chrome debugger for Eclipse

僤鯓⒐⒋嵵緔 提交于 2019-12-12 09:52:14
问题 I have struggled this for couple of days without any success, please help me out. What I am seeking is to find a better IDE for editing and debugging Node.js based JavaScript server code. I have successfully installed Eclipse IDE for JavaScript and followed link https://github.com/joyent/node/wiki/Using-Eclipse-as-Node-Applications-Debugger installed Chrome debugger for Eclipse.However, when I tried to debug I encountered an error saying 'Failed to get tabs for debugging' Here are the steps

Android USB Debugging Port Forward Error

旧巷老猫 提交于 2019-12-12 09:34:11
问题 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. 回答1: I found this in the Chromium source.

chrome inspector, remote debugging no longer works properly on my mobile app

对着背影说爱祢 提交于 2019-12-12 08:31:05
问题 I have built a progressive web app using Cordova/Ionic. I have been using dev-tools to troubleshoot and analyze my apps inner workings for the better part of 3 years now. In the last few weeks however, i think since Chrome updated to v70+, dev-tools can no longer properly connect and/or manage the app running on my external device (several different test phones). I have 4 Android test phones, and the same or almost the same issues are happening with dev-tools when connected to each device.

How do you apply style rule in Safari Web Inspector?

别等时光非礼了梦想. 提交于 2019-12-12 08:23:37
问题 Chrome Developer Tools allows you to apply a style rule in the Styles pane. I haven't found a way to do this in Safari (Style Rules pane). Any one know if it is possible? Also, does Safari have rulers like Chrome does? 回答1: Safari 8.0.8 on OS X Right-click any element and select Inspect Element from the pop-up menu Ensure Styles and Rules are selected on the right hand side of the inspector You can then either add individual rules by clicking + New Rule , or simply click and start typing