feedback
Jun 3 2005

JavaScript Debugging

by John Dyer

Mozilla's JS debugger is a god-send for JavaScript development, but everything still needs to work in IE and debugging in that environment can be rough. When I started doing JavaScript, I would use alert('current var=' + myVar); all over the place to figure out what was happening in the code. Later, I started embedding a TEXTAREA in and writing text to that box. But I wanted a way to debug without messing up the exiting page and still work with IE. The solution I've come up with is to launch a new window and dynamically create a TEXTAREA in that window that I could write to (just like Mozilla's debugger)

Usage

JavaScript Debugger example

Results

JavaScript Debugger example

Download JS Debugger

Add comment


(Will show your Gravatar icon)  

  Country flag

biuquote
  • Comment
  • Preview
Loading