Skip to main content

Running Desktop Editors in debug mode

In certain cases, it is necessary to run ONLYOFFICE Desktop Editors in debug mode — for example, to troubleshoot performance issues, inspect logs, or collect information for support.

Use the --ascdesktop-support-debug-info flag when launching the application:

Run the following command in a terminal:

"%ProgramFiles%\ONLYOFFICE\DesktopEditors\DesktopEditors" --ascdesktop-support-debug-info

Option 1. Run the app through the terminal:

  1. Press Win+R.

  2. In the appeared Run window, type cmd in the Open field.

    Windows Run dialog
  3. Click the OK button. The terminal will be opened.

  4. Enter the command above and press Enter.

Option 2. Run the app through the shortcut:

  1. Right-click the application shortcut on the desktop screen.
  2. Choose Properties.
  3. Open the Shortcut tab.
  4. In the Target field, after the path to the application, enter a space and then type the --ascdesktop-support-debug-info flag.
  5. Click the Apply button.
Windows shortcut

Working in debug mode

To open the developer tools, right-click any editable field on the top toolbar (for example, font list combo) and click Inspect Element, or click anywhere in the document and press F1.

Inspect Element

Here is the result:

DebugDebug

--ascdesktop-support-debug-info-keep

You can use the --ascdesktop-support-debug-info-keep flag to persist the debug mode state across launches. To use it, follow the same instructions as for --ascdesktop-support-debug-info above.

ValueUsageDescription
1--ascdesktop-support-debug-info-keep=1Enables debug mode permanently.
0--ascdesktop-support-debug-info-keep=0Disables debug mode permanently.
default--ascdesktop-support-debug-info-keep=defaultResets to the default state (debug mode off).

For a reference of all available command-line flags, see Command-line flags.