FireBug. a very sweet firefox extension for debugging and tracing javascript and ajax.