Debugging Bookmarklets

These bookmarklets allow you to inspect properties, methods, custom variables, errors, etc.

To use a bookmarklet, simply click the link (or, if you use Explorer, drag it to another browser window).

To save the bookmarklet, add it to your favorites/bookmarks or drag the link to your desktop. If you use Explorer or Opera you can import all the bookmarklets in one easy operation.

Bookmarklet Works in frames Browser support
Read Global Variable
This bookmarklet can be very useful for debugging purposes. It gives you the value and type of any global variable on the page. This can be a variable in the page's embedded scripts, a variable set by a bookmarklet, or even the DHTML objects of the page (frames, document, links, images, etc.)

To test it, set the variable x to a random variable here, then use the bookmarklet to examine the value of x. Or try specifying "document.links.length" (without quotes). This will give you the number of links on the page.

All browsers: Read Global Variable
Last upd. 14 Sep. 2001
No Works in Internet Explorer 5.5 and later
Works in Netscape 4.7
Works in Netscape 6 and 7
Works in Mozilla
Works in Opera 7 and later
DOM Browser
An advanced tool for browsing a page's DOM objects. You can specify an object directly or browse through the DOM hierarchy. Double-click the desired child object in the list to inspect it. Navigate forwards and backwards. Very powerful and very handy when you debug web pages.

In Explorer the DOM Browser will only show native properties. In Opera and Netscape/Mozilla it will show both native and user-defined properties and native and user-defined methods, making it easier to debug your own embedded scripts.

Note: You need to be on-line to use this bookmarklet.

Explorer, Netscape 6+, Mozilla, Opera 7+: DOM Browser
Last upd. 22 Oct. 2005
Yes Works in Internet Explorer 5.5 and later
Works in Netscape 6 and 7
Works in Mozilla
Works in Opera 7 and later
Script Debugger
The script debugging tools in Explorer are almost non-existent. Opera, Netscape, and Mozilla are somewhat better in this regard. After you run this bookmarklet on a page, all script errors will be caught and displayed in an error window.

Example: Run it on this page, then use this link to generate a script error (an invalid method, xxx, is called).

Explorer: Script Debugger
Last upd. 15 Dec. 2003
Yes Works in Internet Explorer 5.5 and later
Script Debugger Advanced
The same as above, except more info is displayed, like mouse coordinates and key state.

Explorer: Script Debugger Advanced
Last upd. 15 Dec. 2003
Yes Works in Internet Explorer 5.5 and later

See also these bookmarklets: layout, links, navigation, developer, search, experimental, ActiveX.



Top of this page
Go to the main page
Send e-mail
Updated 13 Apr. 2006