Stack Trace Line Numbers for Unity Events
After a couple of months of (reverse-)engineering, we found a way. Sentry is now the only platform to provide stack trace line numbers for Unity SDK version 2020.3 onwards. We finally have full-fidelity traces for Unity errors. You no longer have to spend time searching for the line the exception came from, it’s all in the stack trace. It comes complete with the C# file, line and code snippets, and all the other bells and whistles Sentry offers.
Configuring up the Sentry Unity SDK got a smidge easier. Watch the video below to learn how to install the Sentry package in your Unity editor (spoiler: you copy-paste one URL). Sentry mobile engineer, Stefan Jandl, shows you how to test sample errors and how the exceptions are captured in Sentry. He also walks through how to enable more advanced features in the Unity editor like attaching screenshots and programmatic configurations.
With Sentry’s line number integration and (one-line setup) Unity package, you’ll spend less time combing through your source code and recreating potential errors. Maybe you can use that extra time unlocking new quests on Genshin Impact or becoming the last one standing in the new season of Fall Guys.