google-chrome-devtools

YouTube player stops after few seconds on mobile

喜欢而已 提交于 2019-12-06 07:24:32
I have a YouTube video embedded in my mobile webpage. On desktop, it plays properly. However, on mobile phone (emulated on Android), it stops after some time throwing an error. When I debugged in console, following errors are generated: Failed to load resource: net::ERR_FAILED XMLHttpRequest cannot load http://r13---sn-nx57yn7s.googlevideo.com/videoplayback?source=youtube&ipbit…s_redirect=yes&mm=30&ms=nxu&mt=1410325650&mv=u&range=0-65535&keepalive=yes . No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin ' http://www.youtube.com ' is therefore not allowed

Interpretation of memory usage in chrome task manager

做~自己de王妃 提交于 2019-12-06 07:10:43
问题 I started from memory leak investigation in a large java script app which is run as a widget in a browser based on webkit and sfx (java script core engine). After a while I found a source of memory increasing over time. It happened to be $.ajax(..) . Okay, I thought, let's try different versions of jquery or use XMLHttpRequest directly - same result. Then I checked it on google chrome and was surprised, because heap profiler showed neither increase of number of js objects nor increase of heap

Chrome remote debugging, the device is not showing up

懵懂的女人 提交于 2019-12-06 06:59:16
问题 I'm trying to debug a Website in Chrome on an Android device. For this I'm following the official remote debugging guide. Things are working up to 6. Make sure that Discover USB devices is enabled. , but then in point 7. Connect your Android device directly to your development machine using a USB cable. , the device is not showing up. Also on the device, I do not get the the Allow USB Debugging permission prompt as described in point 8. The device has USB Debugging enabled, and Windows

How effective is the Chrome developer tools user-agent override at emulating other browsers?

核能气质少年 提交于 2019-12-06 06:03:01
问题 The Chrome developer tools have a feature to change the user-agent to spoof servers enabling developers to test applications for other devices and browsers without having to leave the comfort of the Chrome browser on a desktop terminal. I assume that Chrome emulates these other browsers rather than them virtually. How standards compliant is Chrome with regard to JavaScript, CSS, and other technical browser differences? For instance, has anyone done a comprehensive test to determine if the

Javascript debugging in Chrome Inspector: variables are shown undefined in watches and console but can be inspected when hovered

馋奶兔 提交于 2019-12-06 05:04:34
While debugging AngularJS in Chrome inspector I often face the situation when I know that some variables are defined, and I can inspected them by hovering a mouse over them in Chrome inspector. They also appear in 'locals' tab. However, when I try to add them to watch tab or evaluate them in console by typing the variable name I get "undefined". See picture(notice variable 'xhr'). Can anyone explain the reason why sometimes variables are shown as undefined in watch tab and console, when they aren't actually undefined in current scope? And, if it's possible, how to make watch window and console

High “Receiving Time” for HTTP Responses below 500 bytes in Chrome Devtools

China☆狼群 提交于 2019-12-06 04:45:03
问题 While using devtools Network tab on Chrome 15 (stable) on Windows 7 and Windows XP, I am seeing cases where "receiving" time for an HTTP response is >100ms but the response is a 302 redirects or small image (beacons) - with a payload below 500 bytes (header+content). Capturing the TCP traffic on Wireshark clearly shows the server sent the entire HTTP response in a single TCP packet, so receiving time should have been 0. A good example is CNN homepage, or any major website that has a lot of

Can I execute nodejs javascript scripts in chrome devtools?

非 Y 不嫁゛ 提交于 2019-12-06 04:15:34
Is it possible to use chrome devtools to execute the terminal command node myfile.js , so the chrome console would output all console.log s from my code? I have got some terminal plugin installed in my IDE and I use some keyboard shortcuts when I want to run this command on my files, to get my logs immediately (like when running html+js in the browser) but it prints out just plain text. Chrome can recognize the output data type and structurize it well (arrays, objects) , what is really cool. I've already tried out node inspect-brk but its purpose seems to be quite different than just printing

Remote Debugging Chrome on Android issue

孤者浪人 提交于 2019-12-06 03:56:54
I am have issues using the remote debugging feature of the Chrome Developers tools with my Android device (LG Nitro running Android version 4.0.4). It was working perfectly several days ago but now my device never appears on the about:inspect page. I have followed and carefully considered these instructions including the troubleshooting tips. I have also searched for the answer to my problem but have not been able to find anything that works. I am using Chrome version 35.0.1916.141 on my Android device and version 35.0.1916.114 on my PC (Windows 7). Neither says any updates are available.

Share in-memory objects in Chrome extension content scripts?

霸气de小男生 提交于 2019-12-06 03:13:24
I am new to both JavaScript and Chrome development, and am trying to create an extension that injects content/CSS in certain web pages. Simple enough, but the catch is that to do so it requires looking through a significant amount of data in local storage. From what I've read so far, the correct way to do this would be either: Reading the required data ( JSON serialized ) from storage directly from the content script every time the page is visited, or Maintaining the state in the extension background page and transferring the required data ( also JSON serialized ) to the content script

Chrome won't debug a large JS file

冷暖自知 提交于 2019-12-06 03:05:36
问题 I have a large Javascript file (20,000 lines). The Chrome debugger won't debug it. I.e. I can put in a break point and it knows about the break point but it won't pause on it. This is definitely to do with the large file size; it work with smaller files on the same site. Does anyone have any ideas how I can get it to work with this large file? (I'm unable to do anything about the large file size). 回答1: Use the following alternative: Copy the script Add a debugger statement Paste into the