Skip to content
David-Desmaisons edited this page Nov 17, 2014 · 2 revisions

#Basic

ko_extension.js includes a custom binding provider written by Ryan Niemeyer that will caugth binding exceptions and log them to the console.

This allows better debugging and also ensure that one broken binding will not break all the binding of a given View.

#Tools for HTLMLWindow UserControl

EnableBrowserDebug property

Setting EnableBrowserDebug property allows the use of the Awesomium debugging tool in a browser at http://127.0.0.1:8001/ Note that you have to set EnableBrowserDebug to true before using the component because it will not work after having initializing Awesomium WebCore.

IsDebug property

If set to true, HTLMLWindow will display 2 buttons:

  • "ko-debug" opens/closes a window to display the ViewModel (made using minor tweeks to the bookmarklet by James Smith- basically making it work for Chromium 18).
  • "Open browser" open our favorite browser at http://127.0.0.1:8001/. EnableBrowserDebug should be set to true for this to have any effect.