google-chrome-devtools

Is there a way to auto expand objects in Chrome Dev Tools?

房东的猫 提交于 2019-11-26 15:07:11
问题 EVERY SINGLE TIME I view an object in the console I am going to want to expand it, so it gets tiresome to have to click the arrow to do this EVERY SINGLE TIME :) Is there a shortcut or setting to have this done automatically? 回答1: While the solution mentioning JSON.stringify is pretty great for most of the cases, it has a few limitations It can not handle items with circular references where as console.log can take care of such objects elegantly. Also, if you have a large tree, then ability

How to reposition Chrome Developer Tools

南楼画角 提交于 2019-11-26 14:58:57
问题 The tools are opened on the bottom of the chrome window per default. This is a rather bad choice for a wide screen display since there is plenty of empty space to the right but not much vertical space to spare. Unfortunately, I have found no way to reposition the tools. I would like to have them on the side, similar to firebug. The only option similar to what I want is to detach the dev tools and place chrome and the tools window side-by-side. This is not very convenient for quickly alt

How to find what code is run by a button or element in Chrome using Developer Tools

那年仲夏 提交于 2019-11-26 14:57:30
问题 I'm using Chrome and my own website. What I know from the inside: 1 ) I have a form where people sign up by clicking this orange image-button: 2 ) I inspect it, and this is all it is: <img class="formSend" src="images/botoninscribirse2.png"> 3 ) At the top of the source code, there are tons of script sources. I know which one the button calls because I coded it: <script src="js/jquery2.js" type="text/javascript"></script> 4 ) Within that file, you could find: $(".formSend").click(function() {

Google Chromecast sender error if Chromecast extension is not installed or using incognito

风流意气都作罢 提交于 2019-11-26 14:56:36
I'm having an error running Chromecast sender in Chrome Incognito or if Chromecast extension is not installed: Failed to load resource: net::ERR_ADDRESS_UNREACHABLE chrome-extension://boadgeojelhgndaghljhdicfkmllpafd/cast_sender.js Failed to load resource: net::ERR_ADDRESS_UNREACHABLE chrome-extension://dliochdbjfkdbacpmhlcpmleaejidimm/cast_sender.js Failed to load resource: net::ERR_ADDRESS_UNREACHABLE chrome-extension://hfaagokkkhdbgiakmmlclaapfelnkoah/cast_sender.js Failed to load resource: net::ERR_ADDRESS_UNREACHABLE chrome-extension://fmfcbgogabcbclcofgocippekhfcmgfj/cast_sender.js

Chrome: API for performance data

非 Y 不嫁゛ 提交于 2019-11-26 14:53:08
问题 Problem Descritpion How can I access the data from the Chrome Performance tool either from the browser console or using Chrome driver methods when using Selenium? In particular, I am interested in getting the page loading time . On the top diagrams I can see that the last elements were loaded around 1700-1800 ms mark. The event log in the bottom shows that the last element started loading (and finished in a few ms) at 1720.1 ms from the time the page was reloaded. What I Tried So Far I tried

Value of “this” is incorrect when debugging Babel transpiled React with Chrome Devtools

泄露秘密 提交于 2019-11-26 14:47:56
问题 I have a React application that is transpiled with Babel using the following .babelrc configuration { "presets": [ "es2015", "stage-1", "react" ], "plugins": [ "transform-decorators-legacy" ] } The application transpiles and runs fine. However, when I debug event handlers (purposely written as arrow functions), the Chrome debugger displays the value of "this" as null. Here is a sample event handler handleNext = (event) => { event.preventDefault(); this.gotoPage(this.state.page + 1); } If I

Measure the render time of a JSF view after a server request

假如想象 提交于 2019-11-26 14:27:10
问题 I would like to measure the rendering time of a JSF application. Because of out of my power reasons, the application can't be populated with logs. Therefore, my question would be, is there any way in which I can measure the rendering time of the application after doing a certain action that includes a back-end(server) call using any browser? So far,after using the Chrome Developer Tools,I spotted the following. On the Network tab, each request has the "Time" displayed. In addition, after

Disable source maps in Chrome DevTools

风流意气都作罢 提交于 2019-11-26 14:10:00
问题 Is there a quick way to switch from the jsx code shown in Chrome DevTools to the raw ES5 and back again? 回答1: Open Developer Tools, go to "Settings" for Developer Tools, then uncheck Enable JavaScript Sourcemaps under the "Sources" settings. 回答2: You can double click line numbers to jump from source files to unminified output files. Other than that it seems limited. See the comment below. I found this to be useful during development. When using webpack-dev-server (or some other tooling)

How to search all loaded scripts in Chrome Developer Tools?

荒凉一梦 提交于 2019-11-26 12:49:10
问题 In Firebug, you can search some text and it will look for it in all scripts loaded on a page. Can the same be done in Chrome Developer tools while debugging client script? I tried it, but it seems to search only in the script I have open, and not the rest that are on the page. I hope the next screenshots give a better idea about what I\'m trying to accomplish: The following screenshots are from a single search in Firebug: 回答1: Open a new Search pane in Developer Tools by: pressing Ctrl +

“Inspect” a hover element?

萝らか妹 提交于 2019-11-26 11:58:53
问题 Note: I\'ve read similar threads, but none quite my issue - I can right click on it fine, it just then disappears. I find \"Inspect Element\" an invaluable tool in Chrome, however my latest foray as I learn the wizardly ways many of you already possess saw me creating a sub-menu for an element on my nav bar, which pops up below on hover of it\'s parent item. The popup(or down) isn\'t quite styled how I\'d like, so I right-click > inspect element to see what\'s coming from where exactly, and