Tutorial - Debugging Mobirise with Startup Options

Allgemeine Fragen
Benutzeravatar
mobiwise
Mitglied (Level 2)
Mitglied (Level 2)
Beiträge: 19
Registriert: Fr 26. Jun 2026, 09:23
Wohnort: France
Kontaktdaten:

Tutorial - Debugging Mobirise with Startup Options

Ungelesener Beitrag von mobiwise »

When Mobirise encounters a problem, it is often difficult to understand what is actually happening.

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-logging
You can also launch Mobirise directly from the Command Prompt.

1. Enable logging

Code: Alles auswählen

--enable-logging
This option enables Chromium and Electron internal logging.

It 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-logging
2. Increase the log verbosity

Code: Alles auswählen

--v=2
By default, the logs remain fairly concise.

This option increases the level of detail.

Code: Alles auswählen

"C:\Program Files (x86)\Mobirise\Mobirise.exe" --enable-logging --v=2
The available values are usually:

Code: Alles auswählen

--v=1
--v=2
--v=3
The higher the value, the more detailed the logs become.

3. Save logs to a file

Code: Alles auswählen

--log-file=C:\users\USERPROFILE\temp\mobirise.log
Instead of displaying messages only in the console, you can save them to a log file.

Example:

Code: Alles auswählen

"C:\Program Files (x86)\Mobirise\Mobirise.exe" --enable-logging --log-file=C:\users\USERPROFILE\temp\mobirise.log
This is very useful when you need to send the logs to a developer.

Remember to replace USERPROFILE with your actual Windows user profile.

Some useful V8 options

Trace Garbage Collection

Code: Alles auswählen

--js-flags="--trace-gc"
Displays every garbage collection cycle performed by the V8 engine.

Disable the JIT compiler

Code: Alles auswählen

--js-flags="--jitless"
Runs JavaScript without Just-In-Time (JIT) compilation.

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"
Displays the functions optimized by the TurboFan compiler.

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.log
Conclusion

These 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.

:achtung: Warning: These options are not specific to Mobirise. They come from Electron, Chromium, Node.js, or the V8 JavaScript engine. Some of them may change or disappear in future versions of Mobirise. Before using them in a production environment, it is recommended to test each option individually
Benutzeravatar
Tommy Herrmann
Site Admin
Site Admin
Beiträge: 8939
Registriert: So 6. Dez 2020, 07:37
Wohnort: Berlin
Kontaktdaten:

Re: Tutorial - Debugging Mobirise with Startup Options

Ungelesener Beitrag von Tommy Herrmann »

Thank you very much for these tips :tu:
Volker
Moderator
Moderator
Beiträge: 2943
Registriert: Sa 12. Dez 2020, 22:35

Re: Tutorial - Debugging Mobirise with Startup Options

Ungelesener Beitrag von Volker »

Ja ist ein Weg ;)

Ich mach es immer so:

CMD öffnen und Mobirise so starten:
Mobirise.exe --remote-debugging-port=9222
Dann einfach im Browser aufrufen:
Schon hast die Konsole auf und siehst alles ;)

Glaub aber kaum das normale User das brauchen bzw. blicken ;)
Benutzeravatar
mobiwise
Mitglied (Level 2)
Mitglied (Level 2)
Beiträge: 19
Registriert: Fr 26. Jun 2026, 09:23
Wohnort: France
Kontaktdaten:

Re: Tutorial - Debugging Mobirise with Startup Options

Ungelesener Beitrag von mobiwise »

Thanks, Volker! 😊

You're absolutely right. --remote-debugging-port=9222 is a very useful option.

I deliberately left it out of this tutorial because I'm preparing a dedicated guide on remote debugging.

There's quite a lot to cover, and I think it deserves a separate topic.

Thanks for bringing it up!
Benutzeravatar
Tommy Herrmann
Site Admin
Site Admin
Beiträge: 8939
Registriert: So 6. Dez 2020, 07:37
Wohnort: Berlin
Kontaktdaten:

Re: Tutorial - Debugging Mobirise with Startup Options

Ungelesener Beitrag von Tommy Herrmann »

Volker,

also ich denke, das brauchen normale User überhaupt nicht :eek:

Das ist doch höchstens wichtig zur Fehlersuche. Wenn Deine Apps fehlerfrei laufen, braucht man das also auch nicht.

Man muss dazu aber auch den Pfad zu Mobirise mit in der Windows-Eingabeaufforderung (cmd) eintragen:

Code: Alles auswählen

"C:\Program Files (x86)\Mobirise\Mobirise.exe" --remote-debugging-port=9222
... und dann ruft man das nicht in irgendeinem "Browser" auf, sondern nur im Chrome oder Edge, denn das geht nur mit den Chrome Developer Tools.
Volker
Moderator
Moderator
Beiträge: 2943
Registriert: Sa 12. Dez 2020, 22:35

Re: Tutorial - Debugging Mobirise with Startup Options

Ungelesener Beitrag von Volker »

Falsch Tommy

Kannst auch in Firerfox aufrufen ;)

Probier es doch ertsmal bevor Du sowas schreibst. ;)

Konsole reicht für vieles. Klar zum echten debuggen musst Chrome nehmen
Dateianhänge
firerfox.PNG
Benutzeravatar
Tommy Herrmann
Site Admin
Site Admin
Beiträge: 8939
Registriert: So 6. Dez 2020, 07:37
Wohnort: Berlin
Kontaktdaten:

Re: Tutorial - Debugging Mobirise with Startup Options

Ungelesener Beitrag von Tommy Herrmann »

Der Unterschied liegt aber im nächsten Schritt:

>Chrome oder Edge können sich über ihre Chromium-Entwicklertools direkt mit einer Chromium-/Electron-Anwendung verbinden und sie vollständig debuggen.

> Firefox besitzt diese spezielle Chromium-Debug-Funktion nicht. Er kann zwar die Übersichtsseite anzeigen, aber die eigentliche "Inspect"-Funktion für eine Electron-/Chromium-Anwendung ist dort nicht in gleicher Weise integriert.

... aber egal - ich brauche das nicht, habe es nie gebraucht und werde es wohl auch nie brauchen :confused:
Volker
Moderator
Moderator
Beiträge: 2943
Registriert: Sa 12. Dez 2020, 22:35

Re: Tutorial - Debugging Mobirise with Startup Options

Ungelesener Beitrag von Volker »

Ich sag ja auch Debuggen mit Chrome.
Und nebenbei der Weg zu Mobirise.exe ist einfachner ;)

Einfach den Pfad auf der Verknüfung öffnen, oben im Dateibrowser alles löschen und cmd tippen. Dann bist nämich direkt im Verzeichnis von Mobirise ;) Das nur mal als Tipp denn das brauch ich z.B. regemmässig wenn ich mbrext ändere. Im Fenster dann einfach: ren blabla.zip anwendung.mbrext eintippen und fertig ;)
Antworten

Wer ist online?

Mitglieder in diesem Forum: 0 Mitglieder und 1 Gast