Skip to content
This repository has been archived by the owner on Nov 8, 2021. It is now read-only.

Debugging

polygraphene edited this page Aug 28, 2019 · 7 revisions

Log files

You can use following log files for debugging.

  1. Server driver log
    • C:\Program Files\ALVR\logs\driver.log
    • Generated only if "DebugLog" is enabled
  2. Crash log
    • C:\Program Files\ALVR\logs\ALVR_CrashLog_*.log
    • Generated when driver crashes
  3. SteamVR log
    • C:\Program Files (x86)\Steam\logs\vrserver.txt
    • C:\Program Files (x86)\Steam\logs\vrmonitor.txt
    • C:\Program Files (x86)\Steam\logs\vrcompositor.txt

How to enable server driver log output

  1. Open "Debug" tab on ALVR.exe
  2. Check "DebugLog" and restart server
  3. Then you get driver.log file in (Install path)\logs\driver.log

How to get logcat

  1. Connect your headset to PC with USB cable
  2. Open Command Prompt
  3. Put adb logcat -d > logcat.txt

How to debug vrserver on Visual Studio

Reference: https://steamcommunity.com/app/358720/discussions/0/133256689833474727/

  1. Open project property of alvr_server project.
  2. Change Command parameter to C:\Program Files (x86)\Steam\steamapps\common\SteamVR\bin\win64\vrserver.exe in Debugging configuration.
  3. Set Command Arguments to --keepalive or --keepalive --earlyload
  4. Set alvr_server project as startup projcet.
  5. Start debug.