Since Mobirise is built on Electron, it supports several startup parameters that can enable diagnostic logging and advanced V8 JavaScript engine options.
In this tutorial, we'll explore the most useful ones.
Modify the Mobirise shortcut
The easiest way is to modify the Windows shortcut.
Right-click the Mobirise shortcut and select Properties.
In the Target field, simply add the desired parameters after the executable path.
Example:
Code: Alles auswählen
"C:\Program Files (x86)\Mobirise\Mobirise.exe" --enable-logging1. Enable logging
Code: Alles auswählen
--enable-loggingIt is especially useful when Mobirise refuses to start or when a plugin causes an error.
Example:
Code: Alles auswählen
"C:\Program Files (x86)\Mobirise\Mobirise.exe" --enable-loggingCode: Alles auswählen
--v=2This option increases the level of detail.
Code: Alles auswählen
"C:\Program Files (x86)\Mobirise\Mobirise.exe" --enable-logging --v=2Code: Alles auswählen
--v=1
--v=2
--v=33. Save logs to a file
Code: Alles auswählen
--log-file=C:\users\USERPROFILE\temp\mobirise.logExample:
Code: Alles auswählen
"C:\Program Files (x86)\Mobirise\Mobirise.exe" --enable-logging --log-file=C:\users\USERPROFILE\temp\mobirise.logRemember to replace USERPROFILE with your actual Windows user profile.
Some useful V8 options
Trace Garbage Collection
Code: Alles auswählen
--js-flags="--trace-gc"Disable the JIT compiler
Code: Alles auswählen
--js-flags="--jitless"This option is mainly intended for developers who want to measure the impact of V8 optimizations.
Trace TurboFan optimizations
Code: Alles auswählen
--js-flags="--trace-opt"Can multiple options be combined?
Yes.
For example:
Code: Alles auswählen
"C:\Program Files (x86)\Mobirise\Mobirise.exe" ^
--enable-logging ^
--v=2 ^
--log-file=C:\Temp\mobirise.logThese startup options can turn Mobirise into a much more powerful debugging environment.
Although most of them are intended for developers, they can also be extremely helpful for diagnosing problems, understanding how Mobirise works internally, or analyzing the behavior of an extension.


