Bug 104155 - PostMessage debugging
Summary: PostMessage debugging
Status: NEW
Alias: None
Product: LibreOffice Online
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: difficultyMedium, easyHack, skillJavaScript
Depends on:
Blocks:
 
Reported: 2016-11-25 08:57 UTC by Aleksander Machniak
Modified: 2020-04-21 11:43 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Aleksander Machniak 2016-11-25 08:57:29 UTC
In debug mode it would be nice to have incoming and outgoing postMessage contents written into browser console.

I could of course do this on the host page, but once you already have debug mode...
Comment 1 Pranav Kant 2018-01-30 12:42:02 UTC
Another good candidate for easy hack. 

Interested one can grep for "console.log2" in the loleaflet/ code to find out how it's done for messages in existing debug mode.

Debug mode is accessible with : ctrl + alt + shift + d
Comment 2 Gökay ŞATIR 2020-04-21 11:43:04 UTC
Hello,

If i am not wrong incoming and outgoing message contents are already being logged.

In socket.js:

_onMessage and _doSend functions do the job i think? I can also see them on console.

Best Regards.