Skip to content

Enable Debug Logging

Tyler Young edited this page Mar 29, 2022 · 1 revision

The mod loader has a debug logging facility that is activated by the presence of an environment variable.

You need to add DW2MC_DEBUG as 1 to your user or system environment to make it start recording to the debug.log.

  1. First, you search for "environment variables" in the Windows Start Menu.

Use the Start Menu to search for Environment Variables

  1. You may arrive at the System Properties dialog, if not, you may skip this step. You should click the "Environment Variables..." button on this dialog.

System Properties dialog

  1. You will now see an Environment Variables dialog that looks similar to this one. You should click either the "New..." button under the top section (for your user account's environment variables) or under the bottom section (for environment variables for all user accounts on the system).

Environment Variables dialog

  1. You will now see a dialog similar to the following one. Enter DW2MC_DEBUG as the variable name and 1 as the variable value. New Variable dialog

  2. Press OK to save the environment variable.

  3. Press OK to close the Environmental Variables dialog.

  4. Press OK to close the System Properties dialog, if it is open.

  5. Launch the Distant Worlds 2. You will then see it begin to record a debug.log file in the game's directory. This log file will not overwrite itself and will constantly grow. You may need to delete it occasionally if it gets too large.

debug.log file in the Distant Worlds 2 game directory