r/oculusdev • u/hani__sharif • Dec 08 '23
Debugging on quest headset
Hey.. I am debugging an app for the first time, so I am a newbie to this. sorry for my ignorance.
I came across Logcat and it requires to connect the headset to the pc and log in realtime. Suppose i run the app on the headset, is there a way to log what is happening with the app on the headset and extract the info, once the game is closed.
This way, if I hand out builds for testing, i can get information from them.
(The objective is to know what is happening behind the scenes, in case if the build crashes or performs not as expected)
View all comments
Show parent comment
3
u/collision_circuit Dec 08 '23
I’m not sure about actual warnings/errors that are generated while running an app, or getting all debug.log messages and sending them somewhere (like a TMPro object). There’s probably a way, but I just work in the editor to catch/fix those.
For anything I can’t debug in the editor, I write my own code for catching null refs, unexpected values, etc. in each specific case, and I send them as a “Notification” to the player’s “Holo-Interface” in my game architecture so I can understand what’s happening in realtime.
The other thing that’s been really useful is having a hidden dev menu I can pull up with buttons that link to a UnityEvent. So there I can drop any kind of custom function/command that can be used easily at runtime to help with debugging an actual Android build.
The combination of the two is kindof like having a dev console, but I don’t have to type anything.