google-chrome-devtools

Google Chrome Mobile Emulator: How to show on screen keyboard

青春壹個敷衍的年華 提交于 2020-01-11 15:18:51
问题 I'm debugging a mobile version of our website through Chrome's Mobile Emulation tool, but cannot figure out how to have an on-screen keyboard pop up when selecting a text field. I have clicked on the text box, but no keyboard pops up. If I do this on a mobile device, the default input method (keyboard) pops up and allows me to type. Is there a way to replicate this? 回答1: Update: Elevating important comments by Ray Foss and Rafael S. Fijalkowski... 🙁 Virtual keyboard support is deprecated in

Listeners in Chrome dev tools' performance profiling results

北城余情 提交于 2020-01-11 08:25:33
问题 I have been profiling a React app using Chrome dev tools and I've discovered a linearly increasing Listener count. Take a look at the screenshot below. The Listeners are in orange. I narrowed it down to a simple countdown value render inside p tags. The remaining time is generated using setInterval function every 1000ms and then formatted and rendered inside the p tags. I created a simple React app using create-react-app and modified the code inside the App.js's App component to update the

Listeners in Chrome dev tools' performance profiling results

ぐ巨炮叔叔 提交于 2020-01-11 08:25:19
问题 I have been profiling a React app using Chrome dev tools and I've discovered a linearly increasing Listener count. Take a look at the screenshot below. The Listeners are in orange. I narrowed it down to a simple countdown value render inside p tags. The remaining time is generated using setInterval function every 1000ms and then formatted and rendered inside the p tags. I created a simple React app using create-react-app and modified the code inside the App.js's App component to update the

Django development server and MIME types

心已入冬 提交于 2020-01-11 08:10:09
问题 Is there anyway of setting MIME types in the django development server? Specifically, I would love to remove this message from the warnings in Chrome dev tools. Resource interpreted as Image but transferred with MIME type image/x-png 回答1: Turns out it was as simple as adding if DEBUG: import mimetypes mimetypes.add_type("image/png", ".png", True) to settings.py 来源: https://stackoverflow.com/questions/16303098/django-development-server-and-mime-types

Controlling Chrome Devtools with Selenium Webdriver

非 Y 不嫁゛ 提交于 2020-01-11 02:55:06
问题 I am looking to access/use Chrome's devtools panel with Selenium Webdriver. Specifically, I want to use the "WASP" chrome plugin, which is accessed through devtools. I've got my selenium set up to run with the WASP plugin included, and I can open DevTools (with sendKeys.F12), but I don't know how to actually use that panel now that it is open. Is there a way to do so? The closest thing I've found to my problem is this link: Chrome Dev Tools API & Selenium WebDriver, but that hasn't been

Can I inject a CSS file programmatically using a content script js file?

自作多情 提交于 2020-01-09 09:02:23
问题 Can I inject a CSS file programmatically using a content script js file? It is possible for me to inject the css when the js file is linked to my popup.html. The problem is I have to click on the button to open the popup to inject the css. I want it to happen automatically and in the background. What happens in my code... Get a variable from a MySQL database through a XMLHttpRequest Call the function, "processdata()" "processdata" Will process the data from the XMLHttpRequest. More

Debugging Chrome extension with access to chrome.devtools api

随声附和 提交于 2020-01-09 06:55:13
问题 I am beginner in Chrome extensions development. I need to extend existing extension (angularjs-batarang), but I have some problems with debugging. manifest.json has entries: "background": { "page": "background.html" }, "devtools_page": "devtoolsBackground.html" The question is: how to debug devtools_page ? I added to manifest.json additional entry "options_page": "devtoolsBackground.html" and when I add this extension to Chrome I have possibility to run options page from chrome://extensions .

How can I monitor focus events in Chrome?

自作多情 提交于 2020-01-07 07:59:28
问题 I'm trying to track which element gets focus in a web app. I came across the monitorEvents API, but I'm having difficulty using it for control or focus events. Other events on body are working as expected, but not the control events. Any advice? 回答1: I'm not sure how exactly you want to "monitor" control events, but you can set event listener breakpoints on the entire category, or individual events like focus . Whenever a focus listener runs for any node on the page, DevTools pauses on the

In Chrome 51, how can I activate the Canvas Profiling Feature?

懵懂的女人 提交于 2020-01-06 19:25:46
问题 I activated devtools experiments in about:flags but nothing shows up in settings. Has something changed or is the feature gone? thanks 回答1: Chrome DevTools used to have a canvas profiler, as Garbee mentions, but unfortunately it was removed. (There have also been other Chrome extensions for general canvas inspection, but AFAIK none of them are still working/maintained) Firefox has a general canvas debugger that's quite good: https://hacks.mozilla.org/2014/03/introducing-the-canvas-debugger-in

In Chrome 51, how can I activate the Canvas Profiling Feature?

一世执手 提交于 2020-01-06 19:24:19
问题 I activated devtools experiments in about:flags but nothing shows up in settings. Has something changed or is the feature gone? thanks 回答1: Chrome DevTools used to have a canvas profiler, as Garbee mentions, but unfortunately it was removed. (There have also been other Chrome extensions for general canvas inspection, but AFAIK none of them are still working/maintained) Firefox has a general canvas debugger that's quite good: https://hacks.mozilla.org/2014/03/introducing-the-canvas-debugger-in