google-chrome-devtools

Disable cache Chrome Extension

喜夏-厌秋 提交于 2020-01-24 09:30:28
问题 I made a plugin that loads a handful of pages of my game website, but I'd like it to also disable the cache as it loads. I can only find cache disabling during reloading. I could load the page, then reload it every time, but that seems not ideal. Is there some way I could disable the cache for my generated tabs, either by the tabs themselves or even the domain. 回答1: What wOxxOm said is correct, using the webRequest API I could modify the cache-control headers. I needed to make a background

Why isn't syntax highlighting working for Ruby files (.erb) in Chrome Devtools?

≡放荡痞女 提交于 2020-01-24 08:55:26
问题 According to this press release, Chrome Developer Tools can syntax highlight several languages, including .erb files: https://plus.google.com/+GoogleChromeDevelopers/posts/MnikfMyJ14X However, .erb syntax highlighting doesn't seem to work for me on neither Chrome Canary or Chrome Stable on my machine (see screenshot below). There doesn't appear to be anything to configure, so I'm not sure what could be the issue or if there is an issue to resolve. Can anyone confirm/deny if syntax

Why isn't syntax highlighting working for Ruby files (.erb) in Chrome Devtools?

假如想象 提交于 2020-01-24 08:55:23
问题 According to this press release, Chrome Developer Tools can syntax highlight several languages, including .erb files: https://plus.google.com/+GoogleChromeDevelopers/posts/MnikfMyJ14X However, .erb syntax highlighting doesn't seem to work for me on neither Chrome Canary or Chrome Stable on my machine (see screenshot below). There doesn't appear to be anything to configure, so I'm not sure what could be the issue or if there is an issue to resolve. Can anyone confirm/deny if syntax

Why isn't syntax highlighting working for Ruby files (.erb) in Chrome Devtools?

女生的网名这么多〃 提交于 2020-01-24 08:54:38
问题 According to this press release, Chrome Developer Tools can syntax highlight several languages, including .erb files: https://plus.google.com/+GoogleChromeDevelopers/posts/MnikfMyJ14X However, .erb syntax highlighting doesn't seem to work for me on neither Chrome Canary or Chrome Stable on my machine (see screenshot below). There doesn't appear to be anything to configure, so I'm not sure what could be the issue or if there is an issue to resolve. Can anyone confirm/deny if syntax

See request time in Chrome developer tools

守給你的承諾、 提交于 2020-01-24 05:48:06
问题 During ajax development, I often need a way of seeing the time a request was sent in Chrome developer tools. Either an absolute time (such as 3:45:23 PM) or a relative time (4.56s since page load) is fine. The closest I can find is the timeline in the Network tab, showing the Start Time (you can click on the Timeline header to select which info it is showing), but you can often only get from it to the nearest 20 seconds: 回答1: This feels like a giant oversight to me on the part of the Chrome

Icons in menu gone in Chrome Developer tools after update [closed]

大憨熊 提交于 2020-01-24 03:50:07
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 6 years ago . After Chrome auto-upgraded itself, the icons for the menu disappeared. How do I re-enable them? 回答1: Open developer tools (Ctrl + Shift + I) and in the bottom right you can click on the gear icon to bring up the settings window. There you can enable icons again. 来源: https://stackoverflow.com/questions/15167087

How to see form data with enctype = “multipart/form-data” in Chrome debugger

泪湿孤枕 提交于 2020-01-24 02:22:50
问题 I'm trying to visualize form data in Chrome Debugger. Data are sent through a from which loads a file and sends some text. Something like this one: <form action="url" enctype="multipart/form-data" method="post"> <input type="file" name="file"> <br> <input type="text" name="some_text"> </form> If I explore the headers of the POST request with dev tools, I do not see form data section but I just find: Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryXGBFWL5ab6g5XoFN that,

Debugging variables not working with gulp sourcemaps + uglify

自作多情 提交于 2020-01-23 08:12:50
问题 I have the following gulp task for bundling javascript: gulp.task('js', function () { return gulp.src(paths.js) .pipe(sourcemaps.init()) .pipe(uglify()) .pipe(concat('bundle.min.js')) .pipe(sourcemaps.write('./')) .pipe(gulp.dest('dist')); }); When I run this in the Chrome dev tools, sourcemaps are found and breakpoints work, but variables can't be debugged . Take this example chunk of angular code: iarApp.config(['$animateProvider', function ($animateProvider) { $animateProvider

Debugging variables not working with gulp sourcemaps + uglify

拜拜、爱过 提交于 2020-01-23 08:12:07
问题 I have the following gulp task for bundling javascript: gulp.task('js', function () { return gulp.src(paths.js) .pipe(sourcemaps.init()) .pipe(uglify()) .pipe(concat('bundle.min.js')) .pipe(sourcemaps.write('./')) .pipe(gulp.dest('dist')); }); When I run this in the Chrome dev tools, sourcemaps are found and breakpoints work, but variables can't be debugged . Take this example chunk of angular code: iarApp.config(['$animateProvider', function ($animateProvider) { $animateProvider

How to use getEventListeners in Chrome Dev Tool?

那年仲夏 提交于 2020-01-22 17:28:46
问题 I tried to trace back which function hooked into a click event of .someclass . I open Chrome Dev Tool and type this getEventListeners(document.querySelector('.someclass')); The result is this Object {} I cannot click and open it to find out the name of the object or the source code that handle click event. Is there a way to find out? UPDATE 1: Followed Krasimir's advise below. There could be only two events: mousemove or mouseover . So how do I find out the exact function handling that event