spacer

Webref WebRef   Sitemap · Experts · Tools · Services · Newsletters · About i.com

home / programming / javascript / venkman / 1 current pageTo page 2
[next]

ASP 3.0/.NET Developer
Jupitermedia
US-NY-New York

Justtechjobs.com Post A Job | Post A Resume
Developer News
SaaS Tool Offers Custom Database Development
Microsoft’s Automated Agent: Can We Talk?
Borland Finally Sells CodeGear

Debugging JavaScript Using Venkman, Part 1

Most people who do even a little bit of JavaScript programming, even those who are simply tweaking somebody else’s code, are familiar with the rudimentary JavaScript debugger in the recent versions of Internet Explorer. Click on the yellow warning icon in your browser, and you get a listing of various JavaScript errors in your code. It is simple, and for many people it is enough, but it’s not really the type of fully-fledged debugging environment with features programmers have come to expect in other development languages. If you find yourself doing a lot of JavaScript programming or tweaking and you are concerned with cross-browser support for your scripts, then Venkman is worth checking out.

What is Venkman?

Venkman is both a graphical and command-line application for writing and debugging JavaScript code that works directly with any browser based upon Mozilla (i.e. Mozilla 1.x, Netscape 6 and 7 and Firebird). All of the commands available can be executed in either environment and its many features include such things as breakpoint management and call stack inspection, however, the variable/object inspection mechanism is great at finding the most common problems you are likely to run into. There is also a code profiling feature that allows you to measure the relative speed at which your JavaScript executes, and there is even a “Pretty Printing” feature which can automatically re-indent and line wrap poorly formatted code. As a JavaScript development environment Venkman has a lot going for it. However, it is not an editor – it will show you where your code has gone wrong and you can save out the changes that make to your code interactively, but it should not be confused with a complete development environment package.

Venkman first started out as a simple JavaScript debugger devised by Netscape programmer John Bandhauer back in 1998. He converted his original C code into Java in order to provide cross-platform support, and this became the original Netscape JavaScript Debugger 1.0, and later, 1.1, both incorporated into versions of Netscape Navigator 4.x. When a JavaScript debugger was needed for the original Mozilla, programmer Robert Ginda took Bandhauer’s API from the original debugger and built upon it, releasing it as Venkman 0.85, which was first incorporated into Mozilla 1.0.

If you have done a complete install of the Mozilla browser from version 1 onwards, you already have a copy of Venkman installed. An easy way to see if you have it installed is to go to the Tools drop-down menu in the browser, select Web Development and see whether the JavaScript Debugger option is available. Another way is to simply open up a command console (i.e. Start Menu -> Run) and then type in mozilla –venkman to launch it. If you don’t have it you can install it by selecting the Debugger option when doing a custom install of Mozilla. Venkman does not come automatically with versions of Netscape 6 and 7 and you will have to download and install a copy of it. At this time, Venkman is now up to version 0.979 and minor updates occur on a weekly or monthly basis. If you are looking to install the latest-and-greatest version of Venkman, go to its development page on Robert Ginda’s site at: http://www.hacksrus.com/~ginda/venkman/ and install the release directly into Mozilla or Netscape using the link provided, and then restart the program (for obvious reasons, you shouldn’t expect this to work in Microsoft’s Internet Explorer). Note that if you are still using Mozilla 1.0 or Netscape 6.x, Venkman’s developers strongly recommend you upgrade to Mozilla 1.4 and Netscape 7.x respectively, as Venkman has been significantly improved and it will not run properly or at all using these slightly older browsers.

Why the name Venkman? It’s actually the codename for this program, but it seems to have stuck, since it’s real name – “JavaScript Debugger” – is, let’s face it, generic-sounding if not downright boring. The name comes from the wily Bill Murray character Dr. Peter Venkman in the Ghostbusters movies. Now you can trap hard-to-track JavaScript bugs in the same way as the onscreen Venkman trapped ghosts.

The initial Venkman screen.


home / programming / javascript / venkman / 1 current pageTo page 2
[next]



JupiterOnlineMedia

internet.comearthweb.comDevx.commediabistro.comGraphics.com

Search:

Jupitermedia Corporation has two divisions: Jupiterimages and JupiterOnlineMedia

Jupitermedia Corporate Info


Legal Notices, Licensing, Reprints, & Permissions, Privacy Policy.

Advertise | Newsletters | Tech Jobs | Shopping | E-mail Offers

Solutions
Whitepapers and eBooks
Microsoft Article: Will Hyper-V Make VMware This Decade's Netscape?
Microsoft Article: 7.0, Microsoft's Lucky Version?
Microsoft Article: Hyper-V--The Killer Feature in Windows Server 2008
Avaya Article: How to Feed Data into the Avaya Event Processor
Microsoft Article: Install What You Need with Windows Server 2008
HP eBook: Putting the Green into IT
Whitepaper: HP Integrated Citrix XenServer for HP ProLiant Servers
Intel Go Parallel Portal: Interview with C++ Guru Herb Sutter, Part 1
Intel Go Parallel Portal: Interview with C++ Guru Herb Sutter, Part 2--The Future of Concurrency
Avaya Article: Setting Up a SIP A/S Development Environment
IBM Article: How Cool Is Your Data Center?
Microsoft Article: Managing Virtual Machines with Microsoft System Center
HP eBook: Storage Networking , Part 1
Microsoft Article: Solving Data Center Complexity with Microsoft System Center Configuration Manager 2007
MORE WHITEPAPERS, EBOOKS, AND ARTICLES
Webcasts
Intel Video: Are Multi-core Processors Here to Stay?
On-Demand Webcast: Five Virtualization Trends to Watch
HP Video: Page Cost Calculator
Intel Video: APIs for Parallel Programming
HP Webcast: Storage Is Changing Fast - Be Ready or Be Left Behind
Microsoft Silverlight Video: Creating Fading Controls with Expression Design and Expression Blend 2
MORE WEBCASTS, PODCASTS, AND VIDEOS
Downloads and eKits
Sun Download: Solaris 8 Migration Assistant
Sybase Download: SQL Anywhere Developer Edition
Red Gate Download: SQL Backup Pro and free DBA Best Practices eBook
Red Gate Download: SQL Compare Pro 6
Iron Speed Designer Application Generator
MORE DOWNLOADS, EKITS, AND FREE TRIALS
Tutorials and Demos
How-to-Article: Preparing for Hyper-Threading Technology and Dual Core Technology
eTouch PDF: Conquering the Tyranny of E-Mail and Word Processors
IBM Article: Collaborating in the High-Performance Workplace
HP Demo: StorageWorks EVA4400
Intel Featured Algorhythm: Intel Threading Building Blocks--The Pipeline Class
Microsoft How-to Article: Get Going with Silverlight and Windows Live
MORE TUTORIALS, DEMOS AND STEP-BY-STEP GUIDES
webref The latest from WebReference.com Browse >
How to Create an Ajax Autocomplete Text Field: Part 6 · Software Engineering for Ajax · Perl Pragma Primer
Sitemap · Experts · Tools · Services · Email a Colleague · Contact FREE Newsletters 
 The latest from internet.com
Using File Virtualization for Disaster Recovery · VoIP Security: SIP—Versatile but Vulnerable · Around the World in 80 Nodes

Created: March 27, 2003
Revised: August 12, 2003

URL: http://webreference.com/programming/javascript/venkman/1