[Thunderbird] Display a message in the console or somewhere else?

Hi *,

Since Thunderbird 52, the command dump doesn’t do anything anymore.
It was usefull to display message in the console we have if we launch Thunderbird with the option -console.

There was another console, but if we do:

const xConsole = Cc["@mozilla.org/consoleservice;1"].getService(Ci.nsIConsoleService);
xConsole.logStringMessage("a random string");

it doesn’t work either anymore.

console.log and console.error do nothing either. Would be too easy.

So, how are we supposed to display a message in Thunderbird now?