Quick answer: Enable wait-for-managed-debugger so the build pauses for you to attach, read the first lines of the player log for the earliest error, and check startup-time singletons, plugin loads, and missing assets that run before your code.
A build that dies on launch gives you almost no window to act: by the time you would attach a debugger, it has already crashed. The trick is making the build wait for you, and reading the few log lines it manages to write before it dies.
How to debug it
1. Make the build wait for the debugger
Enable Wait For Managed Debugger (or the native equivalent) so the process pauses at startup until you attach. Now you can step through the very first frame instead of missing it.
2. Read the first log lines
Open the player log and read from the top, not the bottom. The earliest error or the last successful initialization line tells you which startup step died.
3. Check startup order and singletons
Crashes during boot are usually a missing asset, a plugin that failed to load, or a manager that assumed another was already initialized. Verify each startup dependency exists before it is used.
4. Strip back to a minimal scene
Launch a near-empty startup scene to confirm the engine itself boots, then add your bootstrap systems back one at a time. The system that reintroduces the crash is the culprit.
Catching the ones you can't reproduce
The hardest version of this to fix is the one you can't reproduce — it only happens on a player's hardware, OS, driver, or save state, under conditions that simply aren't present on your machine. A report that says “it crashed” or “it froze” gives you nothing to act on, so the bug survives release after release while quietly costing you players.
Automatic error capture closes that gap. Each failure arrives with its full stack trace, the device and OS, the build number, and a breadcrumb trail of what the player did right before it broke, so even a failure you have never seen becomes a specific, reproducible issue. Fold identical failures into one signature ranked by how many players each hits, and your worklist sorts itself worst-first instead of arriving as a stream of vague complaints.
This is where a tool like Bugnet earns its place. Its SDK captures every Unity error automatically with the full stack trace plus device, OS, memory, build, and game-state context, folds duplicates into one grouped issue with an occurrence count, and ties each to the build it first appeared on — so you fix the problem that hurts the most players first and confirm it is gone when its signature disappears from the next release.
A crash you can name from its stack trace is a crash you can usually fix in minutes.