The DP_Debug script extends JavaScript with (we think) useful debugging methods.