Select component in inspector and dump (in FF for example):
inspect(require('ko').contextFor($0));
inspect(require('ko').dataFor($0));
Get component from registry:
require('uiRegistry').get('componenet.name.in.layout')
Enable Ui component logger (not very usefull):
require('Magento_Ui/js/lib/core/storage/local').set('CONSOLE_LOGGER',5);
Other
<pre data-bind="text: ko.toJSON($data, null, 2)"></pre>
<input data-bind="blah: console.log($data), value: description" />
ko.bindingHandlers.debug =
{
init: function(element, valueAccessor)
{
console.log( 'Knockoutbinding:' );
console.log( element );
console.log( ko.toJS(valueAccessor()) );
}
};
than simply use it likes this:
<ul data-bind="debug: $data">