Macros doesn work an Desktop Writer

I/m just trying run primitrive macro like this: (View - Macro)
(function () {
“use strict”;

const editor = Asc.editor;
const doc = editor.WordControl.m_oLogicDocument;

const oParagraph = doc.CreateParagraph();
oParagraph.AddText("Hello World");

doc.InsertContent([oParagraph]);
console.log("Hello World — added to document");

})();
But nothing happenes. Mocros doesn’t run, debug doesnt work… What I do wrong?
OnlyOffice latest version версия 9.0.3.29 (deb)? OS Linux Mint 22.1

Hello @evsom,
You can check out our macro examples here to better understand how they work:

Here is a text insertion macro example: Insert text | ONLYOFFICE
So, if you want to insert some text such as “Hello World” it should be done like this:

(function()
{
    let doc = Api.GetDocument();
    let paragraph = Api.CreateParagraph();
    paragraph.AddText("Hello world!");
    doc.InsertContent([paragraph]);
})();