google-chrome-devtools

How to filter chrome's devtool console history

偶尔善良 提交于 2020-01-22 10:34:06
问题 In bash, I use the history-search-forward and history-search-backward feature to allow me to type in a few characters of the command I want to run, then press up arrow to cycle through items in my history that match those characters. I want the same thing for the chrome devtool console. I often use up arrow to cycle through my history, but there doesn't seem to be a way to filter it. Does anybody have a clever solution? [Just a note that command history matching has improved a lot in recent

Video content missing from Chrome Developer Tools Network Tab

你。 提交于 2020-01-22 08:21:10
问题 The following website: http://www.themedept.com/demo/getleads/agency.html Shows a looping video: http://www.themedept.com/demo/getleads/images/video/video.mp4 Why does this video video not appear in the Chrome Browser Developer Network Tools Tab: Additional Information: The video is called via Javascript which adds the following element to the page <video autoplay="" loop="" muted="" style="margin: auto; position: absolute; z-index: -1; top: 50%; left: 50%; transform: translate(-50%, -50%);

Why does this `do`–`while` loop repeat the last value after the end? [duplicate]

不打扰是莪最后的温柔 提交于 2020-01-16 08:14:41
问题 This question already has answers here : Javascript while loop return value (3 answers) In Javascript While loop repeats last number when counting from 1 to 5 when run on console [duplicate] (2 answers) Closed 2 years ago . I tried the following code in the Google Chrome console and I’m getting this output. Why is there an additional 4 printed? var i = 0; do{ console.log(i); i++; } while(i < 5); Output: 0 1 2 3 4 4 回答1: There is no extra 4 at end. Your loop is correct and works just fine :).

Can Selenium WebDriver (java) interact with the Browser's inspect tool element selector?

匆匆过客 提交于 2020-01-16 04:22:14
问题 By using selenium, can I access the browsers element picker (Ctrl + Shift + C, in the browser) that is located in the inspect tab? I want to "point" to an element using that picker and have it be high lighted in the browser. For example, something simple like: WebElement elem = driver.findElement(By.id("userName")); elem.pointer(); and that would show the element as highlighted/selected in the browser, same was the inspect tab works. 回答1: Partially Yes . Using selenium-webdriver you will be

Can't debug node.js using Chrome DevTools

家住魔仙堡 提交于 2020-01-16 04:13:35
问题 When I run node --inspect app.js it says "Debugger attached". Then I open up chrome://inspect and I see my app running there so I click either Open dedicated DevTools or Inspect (next to the app's name). No matter how I open Node DevTools though, it just doesn't seem to be connected to anything (I can't see the source code there, the debugger statements are ignored, nothing logs to the console etc). I also tried opening it by opening regular DevTools and clicking the green Node icon. It's

How to expose a function from a Chrome devtools extension “before” page loads?

纵饮孤独 提交于 2020-01-15 11:06:45
问题 I am working on a Chrome devtools extension that exposes a function ( extensionEntryPoint ) to the inspected page. The problem is that extensionEntryPoint is not available at the initial scripts in the inspected page loads and runs. I can use it from window.onload , but that is too late. Here's my code: manifest.json : { "name": "Extension", "version": "1", "manifest_version": 2, "permissions": [ "activeTab" ], "web_accessible_resources": ["api.js"], "content_scripts": [ { "matches": ["<all

meta viewport has no effect in Chrome Device Mode

空扰寡人 提交于 2020-01-15 09:28:09
问题 These are the steps to reproduce the problem (tested with Chrome 53.0.2785.101 and Chromium 53.0.2785.143, both 64 bits, in Linux and Mac) Copy this simple HTML code and paste it in a new file <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <!--uncomment this. It has no effect in chrome device mode (part of dev tools). It doesn't contain initial-scale=1 on purpose --> <!--meta name="viewport" content="width=device-width"--> <title>Initial Scale</title> </head> <body> <p> Lorem ipsum

Chrome Inspect - close preview frame

心不动则不痛 提交于 2020-01-14 13:35:12
问题 In a recent update of Chrome, the "Inspect" window ( chrome://inspect/ ) has a preview window (which shows the web page in an on-screen mobile frame). How do I close it? The closest thing I have managed so far is to reduce the width so it does not take up as much screen real-estate. Image example: 回答1: You can toggle the screencast using the button highlighted below: 来源: https://stackoverflow.com/questions/37023787/chrome-inspect-close-preview-frame

Chrome devtools with Android and Windows XP, blank window

梦想与她 提交于 2020-01-14 03:01:10
问题 I'm trying to debug my website using the Chrome Devtools with my Android phone and my computer Windows XP SP3. The installation worked perfectly, ADB extension is installed on Chrome, and I can access the list of pages opened from the "Inspection target". From here, I get an issue. When I click "Inspect" to see the Chrome Devtools for the page, I get a blank page with nothing inside. I tried different websites and I get the same issue. Is anyone already got this issue and know how to fix it?

Javascript Freeing the DOM

主宰稳场 提交于 2020-01-14 00:31:11
问题 I've written a fairly large web app. It works good for awhile and then slowly starts running sluggish as DOM nodes start creeping around 80,000 - 100,000. So I've been screweing around with some small data sets in the Chrome Dev Tools console (DCTC). Can someone tell me why the following works sometimes and then sometimes it does not. var test = $('<div></div>'); test.remove(); test = null; //Doesn't seem to make a difference when it doesn't work If I watch the DOM node count under Timeline