For debugging server-side code, this book contains a whole chapter, that is, Chapter 8, Debugging. For the client-side part, you'll get a kick-start in this recipe.
Debugging your client-side code
Getting ready
This recipe doesn't really rely on specific code, but if you want to be able to reproduce exactly what's going on, grab the previous recipe's code.
How to do it...
What makes debugging client-side script difficult is that the web client heavily relies on jQuery's asynchronous events. Given that break points halt execution, there is a high...