Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
qian-jiahong opened this issue May 28, 2024 · 2 comments
Closed

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

qian-jiahong opened this issue May 28, 2024 · 2 comments

Comments

@qian-jiahong
Copy link
Contributor

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

@ccfs
Copy link

ccfs commented May 28, 2024

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
Copy link
Contributor Author

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants