knockout js error debug in chrome code example Example: knockout dump variable <pre data-bind="text: JSON.stringify(ko.toJS($data), null, 2)"></pre>