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

Developer Notes #11

Open
flywire opened this issue Jul 4, 2022 · 1 comment
Open

Developer Notes #11

flywire opened this issue Jul 4, 2022 · 1 comment

Comments

@flywire
Copy link
Contributor

flywire commented Jul 4, 2022

Can the wiki be enabled for developer notes?

Quick and Dirty Development Environment

  1. See https://wiki.documentfoundation.org/Development/Extension_Development for an overview
  2. LO files are zipped folders with a renamed extension. Extract them to a directory, change files as required then zip them again with the required extension
  3. Expose functions for development by uncommenting the corresponding entry in ../META_INF/manifest.xml
  4. Use the apso extension to edit the macro and display a console
  5. After the macro is changed the script has to be reloaded by closing and opening the document
  6. Script LibreOffice remotely via a socket to save reloading lo after each code change
  7. Tip: Indicate development version in gui by editing description.xml version value to add !

  1. How to enable debug console logging?
  2. How to inject temporary options for development without changing dialog?
@flywire
Copy link
Contributor Author

flywire commented Aug 6, 2022

#8 (comment)

I'm not clear [...] how to enable logging.

Go to Tools -> Options -> Advanced -> Open Expert Configuration. Search for ooo.ext.code-highlighter.Registry -> Settings and change the value of LogLevel to 1 (INFO) or 2 (DEBUG).

If you want the log to be saved in a file, set LogToFile to 1: the log will be outputted to the user's LibreOffice profile with the name codehighlighter.log.

It still won't log to the apso console.

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

1 participant