firebug

How to debug JavaScript code with mobile browsers

六眼飞鱼酱① 提交于 2019-11-29 22:48:24
I know about firebug and the developer tools for the major modern desktop browsers, but I can't find any way of debugging JavaScript code on mobile browsers. What are some high level techniques I can use to debug code on mobile browsers? Android provides a tool set for these purposes: https://developers.google.com/web/tools/chrome-devtools/remote-debugging/?utm_source=dcc&utm_medium=redirect&utm_campaign=2016q3 Apple does it a similar way: https://developer.apple.com/safari/tools/ Tutorial: https://css-tricks.com/using-chrome-devtools-to-debug-javascript-in-any-browser-with-ghostlab-2/ Android

Break when window.location changes? [duplicate]

十年热恋 提交于 2019-11-29 22:46:40
This question already has an answer here: Break javascript before an inline javascript redirect in Chrome 3 answers 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.__defineGetter__('location', function () { return Location }); window.__defineSetter__('location', function (x) { debugger;

Saving the manipulated DOM/HTML after editing it with Firebug

微笑、不失礼 提交于 2019-11-29 22:38:47
Assume that I've fired up Firefox with Firebug enabled on a random site (say slashdot.org). After loading the site I start editing the page using the Firebug > HTML panel. So far so good: my changes are immediately visible in Firefox. My questions: How do I save the edited DOM tree (represented as HTML)? How do I load a previously manipulated DOM tree/HTML file into the "original context" of the page (slashdot.org in the example)? I want the original context so that all references entities (CSS, images, etc.) will load correctly. You can't save the tree per se, only the HTML. Select the root

Determining Source Line and File of function reference - How does Firebug do it?

匆匆过客 提交于 2019-11-29 22:27:49
问题 Brief introduction: I'm attempting to get at line number of function definition for parsing documentation comments on only public stuff. I've gotten to the point where I can find the name of the function and if I so wanted I could execute the function, but I can't seem to figure out any way to pull out line number information. Note: this is purely for documentation purposes so cross-browser isn't necessary. I know firebug (but not firebug lite so I don't know how possible this is) shows you

Debugging JavaScript events with Firebug

╄→尐↘猪︶ㄣ 提交于 2019-11-29 21:35:38
I need to set a breakpoint to certain event, but I don't know, where is it defined, because I've got giant bunch of minimized JavaScript code, so I can't find it manually. Is it possible to somehow set a breakpoint to for example the click event of an element with ID registerButton , or find somewhere which function is bound to that event? I found the Firefox add-on Javascript Deobfuscator , which shows currently executed JavaScript, which is nice, but the code I need to debug is using jQuery , so there's loads of function calls even on the simplest event, so I can't use that either. Is there

Replace remote JavaScript file with a local debugging copy using Greasemonkey or userscript

旧巷老猫 提交于 2019-11-29 20:55:40
While debugging a client app that uses a Google backend, I have added some debugging versions of the functions and inserted them using the Chrome Developer Tools script editor. However there are a number of limitations with this approach, first is that the editor doesn't seem to always work with de-minified files, and when the JS file is 35K lines long, this is a problem. Another issue is that all the initialization that is done during load time, uses the original "unpatched" functions, hence this is not ideal. I would like to replace the remote javascript.js file with my own local copy,

How can I inspect element in an Android browser?

泪湿孤枕 提交于 2019-11-29 20:52:32
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? Michael Aaron Safyan 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 Had to debug a site for native Android browser and came here. So I tried weinre on an OS X 10.9 (as weinre server) with Firefox 30.0 (weinre client) and an Android 4.1.2

What is meaning of 'Blocking' in Firebug Net Panel?

烂漫一生 提交于 2019-11-29 20:51:17
I'm using Firebug 1.5.2 and while testing a site before production release i can see a huge amount of time consumed by 'Blocking' parts of the requests. What exactly does the 'Blocking' mean? "Blocking" previously (earlier versions of FireBug) was called "Queuing". It actually means that request is sitting in queue waiting for available connection. As far as I know number of persistent connections by default is limited in last versions of Firefox to 6, IE8 also 6. Earlier it was only 2. It can be changed by user in browser settings. Also as I know that while javascript file is loading, all

Google Developer Tools “Network” Tab clears after redirect

好久不见. 提交于 2019-11-29 20:47:35
Google Developer Tools "Network" Tab clears after redirect to another page and i want to know if there is any way to keep all request? I want to do this because i want to verify one POST request but it redirects and get cleared. In firebug we can use the "Persist" option: (The "Persist" option prevents clearing the console at a page reload. That means, the messages will stay inside the console as long as this option is enabled.) https://getfirebug.com/wiki/index.php/Console_Panel In the network tab of dev tools, on the top left of the dev tools there should be a checkbox labelled Preserve log

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

风流意气都作罢 提交于 2019-11-29 20:46:44
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. JasonS Chrome solution https://github.com/v8/v8/wiki/Stack%20Trace%20API can set via commandline on startup --js-flags="--stack-trace-limit <value>" or at runtime at loading a page: Error.stackTraceLimit=undefined /