google-chrome-devtools

Communicate “out” from Chromium via DevTools protocol

十年热恋 提交于 2019-12-07 01:24:43
问题 I have a page running in a headless Chromium instance, and I'm manipulating it via the DevTools protocol, using the Puppeteer NPM package in Node. I'm injecting a script into the page. At some point, I want the script to call me back and send me some information (via some event exposed by the DevTools protocol or some other means). What is the best way to do this? It'd be great if it can be done using Puppeteer, but I'm not against getting my hands dirty and listening for protocol messages by

Chrome will not refresh local file when changing backbone template

随声附和 提交于 2019-12-07 01:09:35
问题 I'm working on a backbone application on Google Chrome (v19.0.1084.56) and when I am working on templates, both me (on Mac OSX Lion) and another developer (on Fedora) have to close the tab and reopen the file to see new changes. Forced refresh (cmd+R or f5) do not work. I am using these flags for chrome to work on the file: open /Applications/Google Chrome.app --args --allow-file-access-from-files --disable-web-security I'm driving myself crazy with this close/open process. Has anyone run

Google Chrome Developer tools not showing inspected elements styles?

一世执手 提交于 2019-12-06 23:33:26
问题 I am using the google chrome developer tools for testing my website; It is working fine for some elements, however for others it is showing the selector but showing it as having no styles; The element does have styles, and the styles are applied to the element. but the inspector shows no styles. If I click the link to the css file line for that inspector I can see the styles there. I saw a google group topic that stated that removing any empty url() declarations fixed the bug. however I have

Move 'debugger' panel in Sources in Chrome DevTools?

独自空忆成欢 提交于 2019-12-06 22:54:39
问题 I always have the DevTools showing vertically in my browser as I use a widescreen. I can no longer get the debugger panel to show underneath the source file content. To clarify which panel I mean, its under 'Sources' tab, then the right 'debugger' panel where you can see Watch, Call stack, Scope, Breakpoints etc. You know, all the useful stuff :D This panel will only show vertically alongside the source files, instead of where it used to be under the source file. This means I get both the

How to set a breakpoint at a lambda call in Google Chrome DevTools?

随声附和 提交于 2019-12-06 19:04:53
问题 I use Babel and Google Chrome Developer Tools with JavaScript source maps enabled. Given this code function myFunc(elements) { return elements .map(element => element.value) .filter(value => value >= 0); } how can I pause execution at execution of lambda function element => element.value ? If I set a breakpoint at line of .map(element => element.value) it will only pause when map is executed, but not when the lambda function is executed. 回答1: This feature is finally available (at least in

No paint profiler in Chrome DevTools

折月煮酒 提交于 2019-12-06 18:50:01
问题 I'm trying to use the Chrome devtools timeline to improve animation performances, but I can't find the Paint Profiler . I recorded some seconds of an animation and then clicked on a paint event in the timeline, as described here, basically: https://developers.google.com/web/tools/chrome-devtools/profile/evaluate-performance/timeline-tool#profile-painting But I don't see any Paint Profiler tab. Here's how I see the console window: I'm using Google Chrome Version 51.0.2704.106 (64-bit), on a

How to copy Request Payload in Chrome on Mac?

…衆ロ難τιáo~ 提交于 2019-12-06 18:43:02
问题 Recently I'm not able to copy a parsed request payload from Chrome DevTools . Button is disabled. I'm able to copy normal POST and GET request but not a parsed JSON payload. This is huge pain in the ... Anyone know the solution for it? 回答1: Came to your question having the same problem. My solution: Select the text with your mouse pointer and make sure you are not selecting more than the whole content, then try again. I was selecting more than the contents by triple clicking it and it wouldn

How to find out the source of a request (in chrome dev tools)?

╄→гoц情女王★ 提交于 2019-12-06 16:52:42
问题 I have a weird network request in my page, which refers to JavaScript files, which I removed from every html file earlier. Cache is cleared and there is no single reference to be found in the source html and the JavaScript files. For fixing that and also out of general curiosity I would like to know if there is a simple way to find out where a request was triggered, preferably using the chrome-devtools. Update: Thanks to jaredwilli I found the initator column under the network-tab. However

Can I view Session State Value at client-side using Chrome DevTools?

时间秒杀一切 提交于 2019-12-06 16:43:28
问题 I was just curious if we can get/view Session variables values for a website using Chrome DevTools. If anyone knows, please share. 回答1: No, you cannot view session state variables at client side. Session state is stored at server, and Client browser only knows SessionID which is stored in cookie or URL . ASP.NET Session State Overview Sessions are identified by a unique identifier that can be read by using the SessionID property. When session state is enabled for an ASP.NET application, each

Chrome 'paused in debugger' issue

删除回忆录丶 提交于 2019-12-06 16:36:42
问题 I don't know what I've switched on (by accident) but every time I have the Inspect Element area open and then try to click anything on the webpage not within the Inspect Element area (especially something jQuery related like a slideshow for example) it greys the page, shows a message saying 'Paused in debugger' and then opens a jQuery file within the Sources section of Inspect Element. Within the 'Call Stack' area, it shows a message saying 'Paused on a "click" Event Listener'. I don't