libreoffice-code-highlighter icon indicating copy to clipboard operation
libreoffice-code-highlighter copied to clipboard

Developer Notes

Open flywire opened this issue 3 years ago • 1 comments

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 avatar Jul 04 '22 13:07 flywire

https://github.com/jmzambon/libreoffice-code-highlighter/issues/8#issuecomment-1192444464

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.

flywire avatar Aug 06 '22 00:08 flywire