If you are working with modern web applications, and especially if you are working on the Microsoft stack, you will have heard of the knockout framework. It is very nice MVVM framework for Javascript. Here are some tips and tricks related to knockout which I have come across while working with it:

Inspect the current viewmodel in a Javascript debugger

In those cases where you don’t have a known home for your viewmodel object in the DOM knockout comes to the rescue with the dataFor and contextFor methods. For instance, add a watch on this value in your favorite debugger:


Now you can continue to dot yourself down until you reach your observables.