Logs and Traces

Saving Debug Logs

First, make sure the logs contain the start of the problem:

  1. Close OpenKneeboard and the game
  2. Start OpenKneeboard
  3. Start the game
  4. Wait for the problem to occur

Then, save the logs:

  1. Open OpenKneeboard’s Help page
  2. Expand the ‘Debugging Information’ section
  3. Read and agree to the disclaimer
  4. Click ‘Save all as…’
  5. Share the created zip along with the latest log from the game either in a new thread the #openkneeboard-help Discord channel or new GitHub issue, along with a description of the problem.

Screenshot highlighting where to click for steps 1-4 above

Logs for DCS World are in Saved Games\DCS\Logs - include whichever is more recent, the .log file or a .zip; the folder in the saved games folder might be called DCS.openbeta or similar instead. For other games, search the game’s forums for information.

Normally, the order in which you start OpenKneeboard and the game does not matter; for log collection it does, as we want the OpenKneeboard log to contain the game’s startup.

Standard Traces

These contain much more detail than the standard logs; they may affect performance of the game, but are required for diagnosing most performance issue, along with particularly complicated non-performance issues. You only need to collect a trace if you are asked for one.

  1. Close OpenKneeboard and the game
  2. Start an administrator command prompt or terminal; for example
    1. Open the start menu
    2. Type ‘command prompt’ but don’t hit enter
    3. Hit ctrl+shift+enter; alternatively, click ‘run as administrator’ if it appears on the right hand side, or right-click then click ‘run as administrator’
    4. Press ‘yes’ if Windows prompts you for permission
  3. In the administrator command prompt:
    • if the last line starts with PS, copy-paste the following and hit enter:
      cd "${env:HOMEPATH}\Desktop"
      
    • otherwise, copy-paste the following and hit enter:
      cd "%HOMEPATH%\Desktop"
      
  4. In the administrator command prompt, copy-paste the following as one line, and then hit enter:
     wpr -start "C:\Program Files\OpenKneeboard\scripts\OpenKneeboard.wprp" -filemode
    
  5. Start OpenKneeboard
  6. Start the game
  7. Wait for the problem to occur
  8. In the administrator command prompt, copy-paste wpr -stop trace.etl then hit enter; this will create a trace.etl in the current folder, which if you followed the steps above, should be your desktop.
  9. Also save the debug logs
  10. Share the debug logs zip, game log, and the trace.etl file in a new thread in the #openkneeboard-help Discord channel or a new Github issue, along with a description of the problem.

Detailed OpenXR Traces

These contain the same information as the standard traces, in addition to information on exactly how the game and OpenKneeboard are using OpenXR. You only need to collect a detailed OpenXR trace if you are asked for one.

  1. Download the msvc-x64 OpenXR-Tracing, and extract it somewhere handy
  2. Download the OpenXR API Layers GUI, and extract it somewhere handy
  3. Run OpenXR-API-Layers-Win64-HKLM.exe
  4. OpenXR-Tracing contains two JSON files, APILayer.json and APILayer_Alternate.json; add them in the layers tool, and position APILayer.json immediately above OpenKneeboard, and APILayer_Alternate.json immediately below OpenKneeboard
  5. Make sure the layers are enabled (ticked); you should see something like the image below
  6. Collect the trace in the same way as a standard trace
  7. When done, you probably want to disable or remove the tracing layers

screenshot of the layer tool showing the tracing layers