google-chrome-devtools

Can you inspect a webapp's filesystem from the chrome dev tools?

余生颓废 提交于 2019-12-03 15:54:53
问题 I am working on a website that is using HTML5's Filesystem API to write some files to a temporary file system. Is there any way I can use the Chrome Developer tools to inspect the files I have written? 回答1: If you go to chrome://flags and enable "Enable Developer Tools experiments", then go to the Experiments tab in the Dev Tools settings, there's one named "FileSystem Inspection" that might work. I haven't tried it, though. 回答2: Filesystem inspection is no longer available. I couldn't find

React Native Debugging with Async/Await

陌路散爱 提交于 2019-12-03 15:51:59
问题 I have recently started writing React Native code, and am having tremendous difficulty getting either the Chrome debugger or the React Native debugger to work properly with my Async/Await functions and Async/Await arrow functions. I can successfully attach the debuggers to my code and step through most of my code, but it seems that when the debugger gets inside of my async methods, it loses track of what line is actually executing , making it impossible to work productively. Some breakpoints

Developer Tools - preserve console record [duplicate]

北城以北 提交于 2019-12-03 15:28:20
问题 This question already has answers here : How to make Google Chrome JavaScript console persistent? (5 answers) Closed 3 years ago . For Network, Profiles and Timeline, there is a record button, which preserves the log. Is there anyway I can do the same for console log? Sometimes, if there is an error in the script or during post submission, the page stop rendering or redirects and the console log clears. Is there any way to see the previous logs. 回答1: Currently not possible. Star this bug

Chrome dev tools settings: where is the Experiments tab to Allow custom UI themes?

空扰寡人 提交于 2019-12-03 14:54:57
问题 I am using chrome version 36+ according to this page, I should be able to allow custom themes using the following instructions: Installation Instructions Add this theme Goto chrome://flags and Enable Developer Tools experiments. Open developer tools settings, select Experiments tab, and check 'Allow custom UI themes' . Reload devtools. I do not see such a tab in the dev tools settings. I see only 'general', 'workspace', and 'shortcuts' 回答1: These are some simple steps to follow, hope it will

Can I view/modify the Redux store using Chrome Dev Tools

偶尔善良 提交于 2019-12-03 14:50:33
问题 React Dev Tools is great for working with Redux, I can simply go in and modify props / state to see the affect on the relevant Container. However if the required Container isn't mounted I need to directly modify the Redux store to make it appear. Is this possible with Chrome Dev Tools, I am able to find the Redux store, it is the top level <Provider /> component, I can even see the getState method, but is there anyway to modify the underlying state? 回答1: Yes, you can. There is a great Redux

How to fix 'Unchecked runtime.lastError: Could not establish connection. Receiving end does not exist.'

荒凉一梦 提交于 2019-12-03 14:33:43
问题 I recently uninstalled and reinstalled Postgres10. I then went to run a Node/Express/React application that relies on connecting to a Postgres database (and communicating with it using Sequelize). Initially it could not connect to the database. I realized the uninstall process removed my old databases, so then I went and re-created a new one with the name that this application connects to. Then when I restarted the app (both server and client), front-end interaction with the database was

What is “initiator other” in network in chrome console?

浪子不回头ぞ 提交于 2019-12-03 14:29:30
问题 I fire an image tag when someone converts on our website for reporting and analytics: <img src="https://example.evyy.net/conv/?somechannel=cats&cid=3790&oid=123&cat1=premium&sku1=123&qty1=1&amt1=456&custid=qbc" /> We noticed traffic decline yesterday. To debug I visited the site and signed up, with the console open network tab. I typed "evyy" into the filter box and I see 3 line items for my tag. What does this mean? Should there not be just 1 line item? One item has a 302 status and the

How to get console.log output in Terminal via Headless Chrome Runtime.evaluate

别说谁变了你拦得住时间么 提交于 2019-12-03 14:13:42
I am following this issue post here: https://github.com/cyrus-and/chrome-remote-interface/issues/105 But I cannot seem to get console.log output in the Mac Terminal. It's probably inside the Chrome Devtools window which I don't see. So how do I get console.log output in Mac Terminal via Runtime.evaluate expression? My code below: const chromeLauncher = require('chrome-launcher'); const CDP = require('chrome-remote-interface'); const file = require('fs'); (async function() { async function launchChrome() { return await chromeLauncher.launch({ chromeFlags: [ '--headless', '--disable-gpu' ] }); }

How to understand devtools timeline properly?

Deadly 提交于 2019-12-03 14:06:47
My question is about Chrome DevTools, specifically I have question about Timeline tab. So as I've read numerous times, my browser has to have 60fps speed rendering my pixels. Sometimes though it has some heavy JS executing and preventing 60fps happening. Also if I have some CSS and JS which cause recalculating and repainting of the DOM tree(part or full tree) it may also take more than ~16ms for one frame. Here is the picture of such a long frame from our app: Ok, here I can clearly see, that two requests take so much time(192ms + 14ms), that browser can't paint 60fps and it doesn't get even

Is it safe to run multiple instances of Puppeteer at the same time?

回眸只為那壹抹淺笑 提交于 2019-12-03 13:08:14
问题 Is it safe/supported to run multiple instances of Puppeteer at the same time, either at the process level (multiple node screenshot.js at the same time) or at the script level (multiple puppeteer.launch() at the same time)? What are the recommended settings/limits on parallel processes? (In my tests, (1) seems to work fine, but I'm wondering about the reliability of Puppeteer's interactions with the single (?) instance of Chrome. I haven't tried (2) but that seems less likely to work out.)