Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bruno-garcia/unity-of-bugs

The fun game of bugs 🐞🦋🐛🐜🕷
https://github.com/bruno-garcia/unity-of-bugs

bugs unity

Last synced: about 2 months ago
JSON representation

The fun game of bugs 🐞🦋🐛🐜🕷

Awesome Lists containing this project

README

        

# Unity of Bugs

A set of different programming errors that would cause errors on a real world game.
This serves as a test project for crash reporting tools.

## Current cases

* Assert False - only relevant on the editor (unless `BuildOptions.ForceEnableAssertions=true`).
* C# throw null - unhandled by user code.
* C# throw/try/catch and `Debug.LogException`.
* C# Log an instance of an Exception as a String - The raw `Exception.ToString()`.
* C# Unity `Log.Debug` calls.
* Android: Kotlin `throw Exception` - unhandled by user code.
* Android: Kotlin `throw` on a background thread - **Crashes the app**.
* Android: C bad access - Requires IL2CPP. **Crashes the app**.

Currently the native plugins are focused on Android. But iOS will come next, and standalone (desktop) after that.

## Other cases

`UnityEngine.Diagnostics.Utils` has a method called `ForceCrash()`.
It takes a `ForcedCrashCategory` as an argument [which includes 4 different types of errors](https://docs.unity3d.com/2019.1/Documentation/ScriptReference/Diagnostics.ForcedCrashCategory.html).
These will be added too in the future. Quicker if you'd like to contribute with a PR :)