google-chrome-devtools

How to use source map to find minification error

非 Y 不嫁゛ 提交于 2019-12-04 13:18:23
问题 I work with Angular and RequireJS. I tried to use RequireJS optimization, and now my application is not working. I am sure it's due to minification. Uncaught Error: [$injector:modulerr] http://errors.angularjs.org/1.2.0rc1/$injector/modulerr?p0=myapp&p1=Error%3…t%20(http%3A%2F%2Flocalhost%3A8080%2Fwebapp%2Fapp%2Fmain-built.js%3A4%3A10) The error message is not very helpful to find the issue, so I was wondering how I can use the source map to pinpoint the error in the original source code. I

How to highlight elements in a Chrome Extension similar to how DevTools does it?

邮差的信 提交于 2019-12-04 13:04:15
问题 I'm interested in creating a Chrome Extension which lists all the elements on the webpage that have an 'id' attribute in a menu. Then, when the user clicks on the element in the menu, the corresponding element on the webpage is highlighted. I saw Chrome devtools highlights an element when you right click and inspect on it. I'm curious if there is some highlighting API accessible from DevTools? If not, how does one highlight elements similar to how devtools does it? 回答1: Chrome API does not

What does “connecting” mean in Chrome Developer Tools in the Network Tab, and why does it show up only for some sites?

元气小坏坏 提交于 2019-12-04 10:55:33
问题 I've been trying to look for an explanation online but I can't seem to find one. If you go to a site like youtube.com on Chrome and hover over the blue bar corresponding to the file name "http://www.youtube.com/", you'll see four different things: -Blocking -Sending -Waiting -Receiving While viewing a different site's page in the network tab, I see -DNS Lookup -Connecting -Sending -Waiting -Receiving It takes a long time to do all these things, even though the page is so simple. What makes my

Chrome Extension: Not loading source-maps

有些话、适合烂在心里 提交于 2019-12-04 10:54:06
I am not able to load sourcemap in Chrome Extension for some reason. The folder which is being loaded for Chrome Extension has .map just next to .js file. With the .js file having the line //# sourceMappingURL=1.9215106f1980d05d2b4c.js.map referencing the .map file path. However, the Chrome dev-tools is not loading the maps for some reason. I double checked the Chrome settings to make sure that the js source maps is turned on and it is working with a simple Angular project. Also, made sure I have the following in the manifest file: "web_accessible_resources":[ "*.map" ], 来源: https:/

High “Receiving Time” for HTTP Responses below 500 bytes in Chrome Devtools

若如初见. 提交于 2019-12-04 10:38:40
While using devtools Network tab on Chrome 15 (stable) on Windows 7 and Windows XP, I am seeing cases where "receiving" time for an HTTP response is >100ms but the response is a 302 redirects or small image (beacons) - with a payload below 500 bytes (header+content). Capturing the TCP traffic on Wireshark clearly shows the server sent the entire HTTP response in a single TCP packet, so receiving time should have been 0. A good example is CNN homepage, or any major website that has a lot of ads and tracking beacons. This brings up a couple of questions: What is defined as "receiving" in chrome

Google Chrome Devtools broken when inspecting Android Webview

梦想的初衷 提交于 2019-12-04 10:10:24
问题 This worked well and the problem started happenning about two weeks ago. I run a Chrome on a Windows 10 computer. I have already tried uninstalling, and then reinstalling Chrome since the issue started. No change. This is what happens: 1) I start Android emulator 2) Run my cordova app in it 3) Go to chrome://inspect and click on the link for my running app on emulator. It is listed ok, that works. 4) The DevTools window opens, but it does not show all the information as it did. I see half of

Chrome Dev Tools: View unminified CSS

梦想的初衷 提交于 2019-12-04 10:08:45
问题 Perhaps I'm missing something (a toggle perhaps) but is there a way to view the unminified (prettyprint) version of a minified CSS source file in Chrome dev tools? 回答1: This is the minified version : And here goes the unminified one : 回答2: Under the sources tab, just click on the "{ }" button. 来源: https://stackoverflow.com/questions/22884783/chrome-dev-tools-view-unminified-css

Disable script editing in chrome developer tools

ぃ、小莉子 提交于 2019-12-04 10:05:47
问题 I use Chrome Developer Tools to debug my JavaScript code, but I have one pet peeve with the way Chrome lets you edit the JavaScript files under the Scripts tab. Sometimes, I do not realize that I am in Chrome and I start making changes to the code under the Scripts tab, only to realize when I refresh that the changes I had just made were never saved to disk! I was wondering if there is way to make the code shown in the Scripts tab read-only, so that if I try to edit the file in Chrome, I'll

Headless chrome + ignore-certificate-errors

两盒软妹~` 提交于 2019-12-04 09:02:36
问题 I need to get headless chrome to ignore certificate errors. The option is ignored when running in headless mode, and the driver returns empty html body tags when navigating to an https resource. <html xmlns="http://www.w3.org/1999/xhtml"><head></head><body></body></html> This is how I am configuring my chrome driver. ChromeOptions chromeOptions = new ChromeOptions(); chromeOptions.addArguments("--headless", "--disable-gpu", "--window-size=1920,1200","--ignore-certificate-errors");

How to debug AngularJS in Chrome Browser [closed]

早过忘川 提交于 2019-12-04 08:59:07
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 5 years ago . I am working on AngularJS. I want to debug the code in the chrome. In firefox i am able to debug it with the help of firebug. Any Idea..? Thanks 回答1: For Debug AngularJS in chrome you can use AngularJS Batarang . Here is the Link for description and Demo: Introduction of Angular JS Batarang