google-chrome-devtools

Source Maps not working with Webpack

淺唱寂寞╮ 提交于 2019-11-30 10:59:11
I'm pretty new to webpack and having some trouble configuring it to produce the necessary source maps. In the devtools it says Source Map detected but it shows the bundle and not the original code: Here is my webpack.config.js: module.exports = { entry: [ 'webpack-dev-server/client?http://localhost:8080/', 'webpack/hot/dev-server', "./src/index.js" ], output: { filename: 'bundle.js', path: '/', }, debug: true, devtool: 'source-map', resolve: { extensions: ['', '.jsx', '.scss', '.js', '.json'] }, module: { loaders: [ { test: /(\.js|\.jsx)$/, exclude: /node_modules/, loaders: ['react-hot','babel

Break when window.location changes? [duplicate]

可紊 提交于 2019-11-30 10:54:20
问题 This question already has answers here : Break javascript before an inline javascript redirect in Chrome (3 answers) Closed 2 years ago . I've got a page that's redirecting when it shouldn't be, and I'm trying to figure out who's doing it. First I tried hijacking window.location: window.location = (function (location) { // location is now hidden inside a closure. We can override it var Location = Object.create(location); // Location is now our proxy. We can use it to catch changes window._

Chrome 59+ websocket frames no longer visible in DevTools

这一生的挚爱 提交于 2019-11-30 10:43:00
问题 Ever since I upgrade from Chrome 58 => 59 on Mac OS El Capitan, when I use Dev Tools Network inspector to view WebSocket frames, the frames no longer are visible. We build an app that makes heavy use of WS, so I rely heavily on this capability. I thought perhaps it was something maybe we changed in our app -- encoding or protocol that maybe causes it to not show up, so I tried this simple test here: https://websocket.org/echo.html Open DevTools Go to https://websocket.org/echo.html Go to

Calling a Javascript Function from Console

匆匆过客 提交于 2019-11-30 10:42:55
问题 In Chrome's JavaScript console, how do I call a function that belongs to a .js file included in the webpage I am viewing? 回答1: If it's inside a closure, i'm pretty sure you can't. Otherwise you just do functionName(); and hit return. 回答2: An example of where the console will return ReferenceError is putting a function inside a JQuery document ready function //this will fail $(document).ready(function () { myFunction(alert('doing something!')); //other stuff } To succeed move the function

Asp.net MVC page is giving Mime type warnings for image files

荒凉一梦 提交于 2019-11-30 10:41:09
While I do not see any functionally or jquery UI elements affected by this, but when I access my asp.net mvc web page the chrome developer console is logged with a bunch of error messages like so: Resource interpreted as image but transferred with MIME type application/octet-stream. All of the warnings are for jquery UI images (though I don't have any custom images on there so I don't know if it's jquery UI only). All the jquery images still load correctly. Does anyone have any insight on why this is happening? egoodberry Are you running your site from Visual Studio's built-in web server?

Google Chrome Customize Developer Tools Theme / Color Schema

笑着哭i 提交于 2019-11-30 10:26:39
问题 How to change color schema on Developer Tools, JavaScript Console in Google Chrome ? Like this: 回答1: Install a DevTools Theme like Zero Dark Matrix Goto chrome://flags/#enable-devtools-experiments , and enable Developer Tools experiments . Select Relaunch Now at the bottom of the page. F12 to Open developer tools, go to Settings , select Experiments tab, and check Allow custom UI themes . F12 , Reload DevTools. 回答2: The dark theme is now natively supported in DevTools: https://developers

How to increase number of Call Stack entries in Google Chrome Developer Tools (or Firefox)?

那年仲夏 提交于 2019-11-30 10:25:45
问题 How to increase number of Call Stack entries in Google Chrome Developer Tools (or Firefox Firebug)? I am getting a Javascript error in a third party control's Javascript. All the calls in the Call Stack window do not belong to my own code. I want to know which line in my code triggered the sequence of events. The Call Stack is not large enough to display something from my own code. 回答1: Chrome solution https://github.com/v8/v8/wiki/Stack%20Trace%20API can set via commandline on startup --js

Customise the look of the Chrome web inspector

做~自己de王妃 提交于 2019-11-30 10:19:45
I've grown tired of the multitude of issues I seem to hit on a daily basis with Firefox and I'm trying once again to switch to Chrome. One of the things that frustrates me is the layout of the tabs in the inspector. In firebug they are all along the top so if I want the metrics of an item it's incredibly simple. In Chrome I'm forever scrolling up and down. Is there anyway to change the way this works? All I want to do is change the layout to something a little similar to Firebug. Cheers! Boris Smus The Chrome web inspector is just a web application, so is very customizable. You can download a

How do I enable/disable google chrome extensions via console

喜夏-厌秋 提交于 2019-11-30 09:27:44
Today, while opening Google Chrome, I realized that there is no easy way to enable or disable an extension without going to one of the following locations: chrome://extensions clicking on Tools>Extensions>Enable/Disable The reason why this is so important, is because of the resources it takes up. For example: I will be starting up my computer, and I immediately want to open Google Chrome quickly. Let's say, for instance, that I am running 100 processes before I open Chrome. However, once I open Chrome, that number jumps to 160 because of all the extensions that load when it starts. Here is

Chrome DevTools extension: how to get selected element from elements panel in content script?

会有一股神秘感。 提交于 2019-11-30 09:13:21
I've done my research and struggled with this for a while, but I need your help. I'm building a Chrome DevTools extension. It should should pass the currently selected element from the 'Elements' panel as a reference to a JS object defined in a content script. It is important that I pass the reference to the selected element, or some other way of identifying the element from the content script. I understand the workflow with 'isolated worlds' in Chrome DevTools. I also understand messaging between extension pages, background page and content scripts. This only happens with JSON primitives,