After asking in komodo extension forum, and then digging in google search result, I finally found out how to record all errors in chrome (including all komodo extensions)  in the error console window:

According to this MDN article on how to setup mozilla extension development, set javascript.options.showInConsole = true would log errors in chrome files to the Error Console.

In order to change this option, I think “Komodo developer extension” extension has to be installed, so you can access a JSShell. Once in a JSShell, run window.openDialog("about:config", "_blank"); to open a config UI to change that option. Alternatively, with the same extension, there is actually a control on the UI to set this option for you automatically: ‘Tools” -> “Extension Developer” -> “Enable Debugging Preferences” (according to the source file, this control toggles the following 3 boolean options:  “nglayout.debug.disable_xul_cache”, “javascript.options.showInConsole”, “browser.dom.window.dump.enabled”)

Now all chrome errors should show up in the Error Console, but Komodo does not provide a UI control to open it. Dock Error Console extension can be installed, or the following line of js code can be executed in JSShell to open one:

window.openDialog("chrome://global/content/console.xul", "ErrorConsole");