google-chrome-devtools

Browser Inspector how to know if image or other resources belongs to which css or js file that was failed to load?

别来无恙 提交于 2019-12-10 10:28:49
问题 I can see some images in my webpage that are not loading the reason is the wrong path inside the css or js file but how to know which js or css file is trying to load that resource. I tried too much in browser's inspector to find some way but I cannot figure out so I have to search each js and css file for the resource name. Is there any way to know the exact js or css file that is trying to load the failed resource. Thanks 回答1: The Firefox and the Chrome DevTools provide a way to see what

Chrome inspector console does not work with version 54.0.2840.99

霸气de小男生 提交于 2019-12-10 10:25:13
问题 I use node-inspector to debug JS with Chrome version 54.0.2840.99. I enter "node-inspector" in one windows cmd console and "node --debug-brk l:\dev\debug\test.js" in another windows cmd console. Open "http://127.0.0.1:8080/?ws=127.0.0.1:8080&port=5858" in Chrome. It's able to debug as usual. But I input "1 + 2" in Chrome console, press "Enter" , nothing happen. I would expect "3" is output to Chrome console. It did work with Chrome version 48.0.2564.116. I did not test with other Chrome

Share in-memory objects in Chrome extension content scripts?

亡梦爱人 提交于 2019-12-10 10:05:56
问题 I am new to both JavaScript and Chrome development, and am trying to create an extension that injects content/CSS in certain web pages. Simple enough, but the catch is that to do so it requires looking through a significant amount of data in local storage. From what I've read so far, the correct way to do this would be either: Reading the required data ( JSON serialized ) from storage directly from the content script every time the page is visited, or Maintaining the state in the extension

Does Chrome support multiple modules/sourceMappingURLs on a single javascript url

谁说我不能喝 提交于 2019-12-10 10:05:42
问题 I have been trying out the Source Maps feature in Chrome and have found that it does not support having a single javascript resource attached to a script tag that contains multiple modules concatenated together along with a //@sourceMappingURL comment separating each one . The first mapping is hooked up and I see the modules source associated in the debugger but all the others are ignored. I would expect that it would be a comment requirement to do this when multiple modules are minified and

Google Chrome Extension Crashes When Installed From Webstore - Need To Identify Cause of Crash

浪子不回头ぞ 提交于 2019-12-10 09:47:20
问题 I have a google chrome extension that crashes after you install it from the webstore. When installed from a local copy the extension does not crash. The crash happens when you click the tool bar icon that is added once it has been installed. The icon is supposed to load a table with URLs. Once restarted all you get is the option to recover tabs. I was hoping someone could help identify the issue of the crash or tell me how to access a crash report to see what is causing the problem. The

How to measure how many TCP connections were made in a page

蹲街弑〆低调 提交于 2019-12-10 07:59:00
问题 With chrome dev tool, I can see the number of requests in a page, but it seems that there is no way to measure number of connections. Is it possible in chrome dev tool? if not, what tools can I use instead? 回答1: You can enable the Connection ID header in the Network panel, which is a unique identifier for a particular connection. You can sort the column to see how many requests there were for a particular connection instance, but there's no built in way to see how many or filter the results.

Chrome annoyingly opens a corresponding line in main.bundle.ts every time I add a breakpoint in a .ts file

痞子三分冷 提交于 2019-12-10 05:31:01
问题 I'm developing an Angular (v4.3.5) SPA, serving it with Angular CLI's ng serve command and debugging it through Chrome Developer Tools. Last week something strange started to happen and I can't seem to do anything to change it to the way it was before: in Chrome Dev Tools, when I click on the line number to add a breakpoint in my .ts files, Chrome Dev Tools also open the corresponding line in main.bundle.ts , so now every single time I add a breakpoint I have to close main.bundle.ts or click

Chrome developer tools. DOM subtree modification breakpoint?

我的梦境 提交于 2019-12-10 04:36:59
问题 Will this break-point will only be invoked if nodes in sub-tree is added/removed, and not if they are simply modified? As testing I tried to add class with JS to sub-tree elements, and the breakpoint did not invoke. So just want to be sure, that only thing that will trigger this particular break-point is only addition/removal of sub-nodes, and not the modification of any f they're attributes or anything else for that matter, can anyone confirm this? 回答1: Subtree modifications are node

How to show code coverage feature in Chrome/Canary Dev Tools

天涯浪子 提交于 2019-12-10 04:12:15
问题 Was reading using the chrome dev tools new code coverage feature and was having trouble trying to enable this feature. I know that Canary enables this without the need to unflag, but I'm unsure where to locate this feature from within Chrome Devtools. 回答1: With the developer tools window open, you can open the command menu using Cmd+Shift+P (Mac) or Ctrl+Shift+P (Windows, Linux), start typing Coverage and then select Show Coverage : Alternatively, you can also select the three dots on the far