Runtime Exception Debugging
You will often find yourself with programs that can only be debugged in-game. In order to catch these errors and make them easier to understand, U# includes a runtime exception watcher that will look for exceptions from VRChat's output log. The watcher will then output the script and line that threw that exception to your editor's log.
- In your editor open the project settings menu
Listen for client exceptionsin the Udon Sharp settings
VRChat client setup
- Right-click on VRChat in your Steam library and click
Set Launch Options...
- Add the launch argument
--enable-udon-debug-loggingto the launch options and click OK
Now once you have the client and editor setup, you just need to start your game and load into the world. Any errors that are thrown in your world will be output to your editor's console. This is an example of what the error will look like, you probably won't be getting the same error and it won't be in the same code file.