google-chrome-devtools

What is the difference between “Resources” and “Application” in Chrome DevTools?

陌路散爱 提交于 2019-12-25 09:05:13
问题 I was looking for the Resources tab in Chrome Developer Tools and couldn't find it until I saw there is a new tab that I didn't recognize named Application , it looks like it is containing all the things that were in the old Resources tab but not colorful as before(now it's all gray). What is the difference? Why have they done this? Why it's gray and not colorful? 回答1: Chrome have introduced new features as well as keeping all the previous ones from the Resources panel. The new features

CSS query generation APIs

半世苍凉 提交于 2019-12-25 05:25:09
问题 I have had enough search on this topic and could not find a suitable answer, finally my question is Does any one know any APIs which I can use to generate CSS query from the web page, similar to the Xpath we get it from Mozilla or chrome plugins. attached is the image for reference. On the similar lines of this image, I need API for CSSQuery which gives me CSS query for selected element 回答1: Are you looking for something like document.querySelector, document.querySelectorAll (and their

Excluding domains from content_scripts in manifest.json doesn't work for CSS files?

半腔热情 提交于 2019-12-25 04:15:48
问题 I want to write a chrome extension to force all websites to use given CSS style except Gmail page. However the following code from content scripts in manifest.json doesn't work (Gmail page will still use the style given in font.css ). "content_scripts": [{ "matches": ["http://*/*", "https://*/*"], "exclude_matches": ["*://mail.google.com/*"], "css": ["font.css"] }] This cannot be fixed even adopting the strategy advised here by replacing exclude_matches with exclude_globs . I know this bug

How to extract the loaded javascript files from Dev Tools extension

人盡茶涼 提交于 2019-12-25 02:04:48
问题 I'm working on a chrome extension that wants to load javascript files from the current page, modify them (prettify), then update the Dev Tools Sources panel. As a fall-back option - I don't override the usual Sources panel - But rather put them in a custom panel. (With this option, all I'd need is a list of the network resources loaded -results in the Network panel) Ideally I'd like to override the source's pages though, in the hopes of using the debugging tools available to the dev tools.

Changing headers and saving file

落爺英雄遲暮 提交于 2019-12-25 01:55:34
问题 When I am in example.com/name.php?id=1&image=33 I can see a certain jpg but I cant save it. In chrome dev tools I can see the path to the jpg but I cant access it directly with the url. How can I use wget or curl (or other in php) to save this file? I think I would need to curl the jpg link but sending the info to the server of the path where I can see the image but I just cant do it. If someone knows how to do this please explain with detailed info since I think I am lacking a lot of

how do I go into eval('debugger') mode when already stopped at 'regular' debugger statement?

≯℡__Kan透↙ 提交于 2019-12-25 01:14:17
问题 I recently started to swap out all my debugger statements with eval('debugger') statements. The reason is that with the plain version, not all "factually/theoretically" visible variables are "practically" visible. This happens because of optimization (see earlier SO question). With this trick, the problem is like "90% solved" - there are some drawbacks. Apart from longer source code, those are: When third party libraries are involved, it is not feasible, maybe not even possible to have the

Chrome Developer Tools IndexDb filter - items disappear

依然范特西╮ 提交于 2019-12-24 22:03:21
问题 Working with Chrome version 35.0.1916.153 m , when I open Resources/IndexedDB and I select a table, all the items appear properly, but as soon as I write something in the input search box the items disappear from the list. The items are not removed from the IndexDB, but to see them again I need to restart Chrome. Any idea? 回答1: See probable duplicate Chrome console keeps getting stuck in a quirky state. See https://code.google.com/p/chromium/issues/detail?id=379483 for insight. The problem

Chrome DevTools listen to multiple selections of the same element in the elements panel

佐手、 提交于 2019-12-24 21:46:45
问题 In my Google Chrome DevTools Extension I try to listen to the selections in the DevTools panel "Elements". In particular, it should be possible to listen to the selection of the already selected element. My current implementation method revolves around the function chrome.devtools.panels.elements.onSelectionChanged . The function name already suggests that it is only possible to react to elements that are not currently selected. Therefore I tried to reset or remove the current selection with

Chrome debugger paused even without breakpoints?

我的未来我决定 提交于 2019-12-24 20:31:27
问题 When inspecting this site, the scripts are always paused in the debugger even if there are no break points set, and if the the pause is un-paused, it again pauses itself. What can be done? https://i.imgur.com/x22TTzx.png 回答1: To ignore all breakpoints (including debugger statements): Open DevTools. Click Deactivate Breakpoints . Reload the page. 来源: https://stackoverflow.com/questions/54624612/chrome-debugger-paused-even-without-breakpoints

Chrome Stable/Canary Dev Tools Issues - Syntax Highlighting Auto-Complete etc

筅森魡賤 提交于 2019-12-24 19:14:18
问题 I wouldn't be on here if I hadn't scoured the web searching for an answer. I am starting to do some development work in ASP.NET and Javascript and I thought for the front-end stuff, I could use Chrome Dev Tools. With that, I have come across some issues. First off, in the stable version (non canary) there isn't a good highlighter that will highlight all instances of the selected word you are on. You have to do a find in order to really see them all. Now, the default non-themed can do this,