-
-
Notifications
You must be signed in to change notification settings - Fork 89
Setting up runtime exception debugging
Bryan Bortz edited this page May 12, 2020
·
4 revisions
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
- Enable
Listen for client exceptions
in the Udon Sharp settings
- Right-click on VRChat in your Steam library and click
Properties...
- Click
Set Launch Options...
- Add the launch argument
--enable-udon-debug-logging
to 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.