google-chrome-devtools

Service Worker issues

半腔热情 提交于 2019-12-23 23:50:41
问题 I'm having some issues with the service worker demo I've implemented in the page at this link. I've tried to cut the code down as much as possible for this demo, but it's too long to paste into here. One problem is that, when the page is fully loaded, and I go to the Application tab of Chrome devtools, and I see rather a lot in the Cache: It's not apparent why there is so much cached... it may be the fonts I'm loading but still... seems large. More worryingly, when I click on the Clear Site

Google Chrome Developer Tools not showing css filename next to css

南楼画角 提交于 2019-12-23 21:13:06
问题 It's a bug of google chrome or there are some guidelines which i should stick to, to return that feature? Thank you. UPDATED Issue was caused by prefixfree. 回答1: There are multiple cases, 1. You are using less CSS files. 2. The CSS class is on same page. 3. Class is generated by a plugin 回答2: I was facing the save problem, but my case it happened because of a old local folder map in the Sources tab. 来源: https://stackoverflow.com/questions/27150499/google-chrome-developer-tools-not-showing-css

Latest Google Chrome Update on 17th Jan 2014 triggers Page(s) unresponsive alert

房东的猫 提交于 2019-12-23 17:42:53
问题 My project is built in .net v4.0. Since a Chrome browser update last week, every page triggers a "Page(s) unresponsive" alert. The alert occurs on every page regardless of whether or not the page uses ajax. This can't have just affected my project! Has anyone any advice on how to resolve this issue. ALl other browsers are fine. 回答1: The only way round this I believe is to ask clients to install the beta version of Chrome (which includes a fix for this bug). To do this they should select to

Why does setTimeout() clutter my call stack under Chrome DevTools?

◇◆丶佛笑我妖孽 提交于 2019-12-23 13:41:00
问题 I have a function that upon completion re-queues itself with setTimeout(). Could someone explain why Chrome DevTools makes it look like it's calling itself recursively? My understanding is the call stack ought to be clear on each invocation. Take this very simple example: <html> <head> <script> function main() { setTimeout(main, 100); // set breakpoint here } main(); </script> </head> <body></body> </html> The first time the breakpoint is hit I see this: After 3 more iterations I see this:

chrome debugger promises dont resolve while paused?

你。 提交于 2019-12-23 10:17:24
问题 Maybe I'm not debugging promises right but basically if you stop at break point and run async code it doesnt actually finishes until you resume execution and that's a problem. Debugger allows you to quickly experiment with multiple api methods... but you cant if you resume it debugger; //now type the following in console Promise.resolve().then(()=> console.log('done')); 回答1: It doesn't execute because the function in .then is only called when the current "thread" is finished. This is the same

Chrome Inline Install for extension not working

最后都变了- 提交于 2019-12-23 09:28:31
问题 I'm trying to use the new chrome inline install feature for extensions (see here: http://code.google.com/chrome/webstore/docs/inline_installation.html). I can't get it to work unfortunately, and have very little clues to go by. I've added the link element to the head element <link rel="chrome-webstore-item" href="https://chrome.google.com/webstore/detail/pnnfemgpilpdaojpnkjdgfgbnnjojfik"> and I call chrome.webstore.install(); in a jquery event handler. I've also verified my domain, however, I

Inspecting javascript variables as code popups in chrome

陌路散爱 提交于 2019-12-23 09:05:06
问题 Anyone know how you get the yellow popup to appear when inspecting javascript variables in chrome? Apparently you just hover over the variable when the debugger is paused to see a variables current state but for whatever reason I can't get this to work. If you have no idea what I'm talking about checkout this screenshot: 回答1: This happened to me before. Just close all Chrome instances or restart it. This should fix the problem. 回答2: I have no idea why this wasn't working but I tired a clean

breakpoint after page reload

拜拜、爱过 提交于 2019-12-23 07:55:46
问题 I need to stop on breakpoint after page reloading. I put a breakpoint in code but after reload it's being disabled. putting debugger; in code works fine. But I was wondering if there is a way to do it in firebug or chrome dev tools. 回答1: May be you have parameters in the url of the page that changes when your reload. http://website.com/page.html?stamp=20120516103456 You then load a new page each time you refresh. That may explain why your breakpoint disappear. 来源: https://stackoverflow.com

Why does a click setting innerHTML trigger two parsing events on Chrome?

筅森魡賤 提交于 2019-12-23 07:44:52
问题 Using the Timeline in the Chrome Developer Tools, I used this small piece of code to record events through innerHTML : <!DOCTYPE html> <html> <head> <script> function test(){ var wrap = document.getElementById('wrapper'); wrap.innerHTML = "test"; } </script> </head> <body> <input type="button" value="click" onClick="test();"/> <div id="wrapper"></div> </body> </html> And I can see that there are two parsing events fired once the test method is run : I am using Chrome Version 23.0.1271.64 m Is

How to omit file/line number with console.log

耗尽温柔 提交于 2019-12-23 07:28:57
问题 In the console of Chrome you can write pretty nice stuff these days. Checkout this link. I've also made a screenshot: As you can see in the screenshot too, the file name / line number ( VM298:4 ) is written at the right. Is it possible the remove that, because in my case this is a very long name and more or less breaks the effect I'm trying to make in my console ? 回答1: This is pretty simple to do. You will need to use setTimeout with a console.log.bind : setTimeout (console.log.bind (console,