

This is problematic, because the Solution Explorer will expose the entire contents of the file, not only the scripts/macros.

The procedure for writing a debugger extension is well-defined I imagine it should be possible to write an extension to LibreOffice that would convert it into a debugger adapter. VS Code already has language support for Javascript (built-in) and Python (extension) creating language server extensions for other languages should be relatively straightforward. I think this would be greatly appealing to the LibreOffice project, providing a single advanced cross-platform code editor with Intellisense and debugging capabilities. Is it feasible to leverage VS Code for all of these scenarios? Python - no built in editing support files have to be added manually.Javascript - using a packaged instance of the Rhino Javascript environment.BeanShell - using a packaged BeanShell editor.StarOffice Basic - using the built-in Basic code editor.Currently, LibreOffice (and variants) allow embedding scripts/macros inside a document, in one of four languages, each with a different editor with very different UIs:
