tablacus / TablacusExplorerAddons

Add-ons for Tablacus Explorer
http://tablacus.github.io/TablacusExplorerAddons/
MIT License
87 stars 12 forks source link

How to output Log when developing a plug-in? #379

Closed qian-jiahong closed 3 months ago

qian-jiahong commented 3 months ago

When developing a plug-in, debugging is required. How to output Log?

ccfs commented 3 months ago

Use "Debug" add-on. See the pdf for details. If you are debugging an options page (options.js), you may need to prefix the statement with MainWindow. e.g. MainWindow.Addons.Debug.alert The add-on displays messages on the Debug pane only. Here is a temp version of the add-on which will write messages to a log file. Under WebView, Addons.Debug.alert cannot run in "sync.js".

qian-jiahong commented 3 months ago

Thanks