google-chrome-devtools

How can I inspect element in an Android browser?

懵懂的女人 提交于 2019-12-18 10:18:06
问题 I want to inspect my website CSS/HTML elements in my Android browser. However it will be over a smartphone or the Android SDK. What is the best way to do it? 回答1: Chrome on Android makes it possible to use the Chrome developer tools on the desktop to inspect the HTML that was loaded from the Chrome application on the Android device. See: https://developers.google.com/chrome-developer-tools/docs/remote-debugging 回答2: Had to debug a site for native Android browser and came here. So I tried

Chrome extensions - Other ways to read response bodies than chrome.devtools.network?

半世苍凉 提交于 2019-12-18 10:11:49
问题 I'd like to read (not modify) the response body for all requests that match some pattern in a Chrome extension. I'm currently using chrome.devtools.network.onRequestFinished, which gives you a Request object with a getContent() method. This works just fine, but of course requires the devtools to be open for the extension to work. Ideally the extension would be a popup, but chrome.webRequest.onCompleted doesn't seem to give access to the response body. There is a feature request to allow the

How to remove all breakpoints in one step in Google Chrome?

醉酒当歌 提交于 2019-12-18 09:59:39
问题 How to remove all breakpoints in one step in Google Chrome? Using version 11. [update] There is now a feature request for this. [update] The feature request is closed (Dec 2011)! 回答1: This is now possible in Sources tab of Chrome Developer Tools. Please see screen grab below and right click within the "Breakpoints" section of the left window. 回答2: Since recently (Chrome 18), you can right-click any breakpoint in the Breakpoints pane and voila! The "Remove All JavaScript Breakpoints" popup

Getting Chrome's console.log to display the line that called a function

人走茶凉 提交于 2019-12-18 09:45:02
问题 Is there any way in the Chrome Console tab to display the address that called a function? I have a function that's being called but I don't know where from. I know I could break and look at the Call Stack but I'd rather just display at each entry who called it: functon select_el() { console.log("select_el called by " + ?????); etc. } Thanks 回答1: I don't think you can do that with console.log() . Try with console.error() if you're fine with red output. 回答2: The answer to this question might be

Chrome Developer Tools closes instantly when attempting to debug WebDriver E2E test

拜拜、爱过 提交于 2019-12-18 04:34:24
问题 I usually debug my Selenium tests in Chrome's dev tools panel. However, after upgrading my OS (Ubuntu Linux), my E2E tests broke completely: Chrome didn't open the first page, but sat idle showing only a blank page. Eventually I upgraded ChromeDriver, and now the tests work again. But with this new Chrome version (after the OS upgrade) and with this new ChromeDriver, there's a weird problem with the dev tools window: Whenever I click CTRL + SHIFT + I to open the dev tools window, or click

Chrome opens with “Data;” with selenium

倾然丶 夕夏残阳落幕 提交于 2019-12-18 04:30:12
问题 I am a newbie to Selenium and trying to open localhost:3000 page from Chrome via selenium driver. The code is : import com.google.common.base.Function; import org.openqa.selenium.By; import org.openqa.selenium.WebDriver; import org.openqa.selenium.WebDriverException; import org.openqa.selenium.chrome.ChromeDriver; import org.openqa.selenium.firefox.FirefoxDriver; import org.openqa.selenium.firefox.FirefoxDriver; public class SeleniumTests { public static void main(String[] args) { System

Chrome 73: Can no longer debug NodeJS with Dedicated DevTools for Node

一世执手 提交于 2019-12-18 04:29:09
问题 I've just upgraded my Chrome to 73.0.3683.75 (Linux) and now cannot get my dedicated Node debugger to actually debug a running instance. Even though I can see the "Debugger attached" message in the console: $ node --inspect-brk hello.js Debugger listening on ws://127.0.0.1:9229/864a1c18-5e45-49ab-843c-77a22841ffff For help, see: https://nodejs.org/en/docs/inspector Debugger attached. the debugger window does not show any signs of debugging a target: Anyone has an idea if this is broken in

Programmatically accessing function scope using Chrome DevTools console

余生颓废 提交于 2019-12-18 04:18:09
问题 When I open up Chrome (v35) DevTools and inspect an object, the console can show me things nested within functions, including something labeled as the '"function scope". For example, when looking at stackoverflow.com, I can see that there's a global $ object containing another function called Callbacks . Callbacks , as does $ , has a functional scope containing Closure and Global . Question 1: What is the difference between some named object nested directly within a function and some object

Workaround for logging objects to console in Chrome

北城以北 提交于 2019-12-18 04:12:52
问题 If you execute this code: var foo = {bar: 'baz'}; window.console.log(foo); foo.bar = 'bla'; The console shows this after expanding the object: (when logging objects and arrays, it's not the run-time value that's recorded) This bug was documented over a year ago: http://code.google.com/p/chromium/issues/detail?id=50316 Is there a workaround for logging objects in Chrome? 回答1: I just use JSON.stringify when i need it. Don't know if it will do it for you, but it is easy and effective for

How to reset chrome inspector?

做~自己de王妃 提交于 2019-12-18 02:15:23
问题 Something is wrong with my Chrome inspector, I would like to reset the Chrome inspector to out of the box settings. How could I do ? (wihout removing my whole Chrome) 回答1: Find the following two files and delete them. These files contain the settings for the inspector. chrome-devtools_devtools_0.localstorage chrome-devtools_devtools_0.localstorage-journal Please make sure to restart the Chrome again. Hope this helps. 回答2: Open DevTools by pressing F12 or ctrl + shift + i press F1 or click on