How do I dump JavaScript vars in IE8?

Here’s one technique that I’ve found helpful: Open the Developer Tool Bar (hit F12) Go to the “Script” tab Click the “Start Debugging” button Next, type “debugger” into the console and hit enter. This should trigger a break point. Go to the “Watch” sub-tab Click the row that says, “Click to add…” and enter a … Read more

How to hide ajax requests from firebug console?

Please, call this function after ajax success or fail: $(‘.result’).load(‘testtemplateboth/testpagetpl’); clearconsole(); function clearconsole() { console.log(window.console); if(window.console || window.console.firebug) { console.clear(); } } OR $(‘.log’).ajaxComplete(function() { clearconsole(); $(this).text(‘Triggered ajaxComplete handler.’); }); function clearconsole() { console.log(window.console); if(window.console || window.console.firebug) { console.clear(); } }

How to debug Greasemonkey script with the Firebug extension?

Updatier: The Mene+Shuman fix now is busted with Firefox 30 and Firebug 2. Firefox 31 may provide workarounds (will investigate). In the meantime, use the “General workaround strategies” listed below. Update: This answer is now obsolete. If you open about:config and set extensions.firebug.filterSystemURLs to false then you can use Firebug to debug the Greasemonkey script … Read more

How can I inspect disappearing element in a browser?

(This answer only applies to Chrome Developer Tools. See update below.) Find an element that contains the disappearing element. Right click on the element and apply “Break on… > Subtree Modifications.” This will throw a debugger pause before the element disappears, which will allow you to interact with the element in a paused state. Update … Read more

How can I use console logging in Internet Explorer?

You can access IE8 script console by launching the “Developer Tools” (F12). Click the “Script” tab, then click “Console” on the right. From within your JavaScript code, you can do any of the following: <script type=”text/javascript”> console.log(‘some msg’); console.info(‘information’); console.warn(‘some warning’); console.error(‘some error’); console.assert(false, ‘YOU FAIL’); </script> Also, you can clear the Console by calling … Read more

How to use CSS selectors to retrieve specific links lying in some class using BeautifulSoup?

The page is not the most friendly in the use of classes and markup, but even so your CSS selector is too specific to be useful here. If you want Upcoming Events, you want just the first <div class=”events-horizontal”>, then just grab the <div class=”title”><a href=”…”></div> tags, so the links on titles: upcoming_events_div = soup.select_one(‘div.events-horizontal’) … Read more