Skip to content

Debug and Test Mode

Guribo edited this page Jul 3, 2026 · 2 revisions

Debug and Test Mode

Debug Mode

Debug mode is disabled by default. No performance impact when disabled — logging code is not compiled into builds.

Enable Debug Mode

  1. Go to Edit > Project Settings > Player > Script Compilation
  2. Add TLP_DEBUG to the list of scripting defines
  3. Find the TLP_Logger prefab in your scene
  4. Set logging severity to Debug (default is Info)

Disable Debug Mode

  1. Go to Edit > Project Settings > Player > Script Compilation
  2. Remove TLP_DEBUG from the list
  3. Set TLP_Logger severity back to Info or higher

Debug logging is verbose — only enable when actively debugging.

Test Mode

Test mode is disabled by default. Intended for unit testing only — do not enable in production builds.

Enable Test Mode

  1. Go to Edit > Project Settings > Player > Script Compilation
  2. Add TLP_UNIT_TESTING to the list of scripting defines

Disable Test Mode

  1. Remove TLP_UNIT_TESTING from the list

Test mode enables workarounds for VRChat SDK parts that cannot be easily mocked.

Compilation Symbols Reference

Symbol Purpose
TLP_UDONVOICEUTILS Package marker — always defined
TLP_UDONUTILS UdonUtils marker — always defined
TLP_DEBUG Verbose logging (excluded from builds)
TLP_UNIT_TESTING SDK workarounds for unit testing

Clone this wiki locally