JS Debugging Tricks

Show event handlers

  • $(<element>).data('events')

Get rid of all animations

  • May ease writing tests
  • $.fx.off = true;
  • Sadly often not respected by plugins (jquery-ui will support it in the next version)

Show code in the debugger

To show the code for a callback even in less capable debugging environments (IE) just convert it to a string by appending a string aFunctionPointer + ''

Last modified 10 years ago Last modified on 12/11/2009 02:24:40 PM

1.3.15 © 2008-2016 Agilo Software all rights reserved (this page was served in: 0.17196 sec.)