Awesome
Apkd.UnityDemystifier
Improved stack trace display for Unity, based on Ben.Demystifier. Work in progress.
Before
After
Requirements
- The .NET 4.X Scripting Runtime needs to be enabled in the project.
- Only tested on the Windows/x86_64 version of the editor (please let me know how this performs on your platform).
Installation
Unity Asset Store
Install the package in your project using the Asset Store page.
Unity Package Manager (Unity 2018.3+)
Add a reference to the repository in the Packages\manifest.json
file in your project directory:
{
"dependencies": {
"com.unity.postprocessing": "2.1.3",
"pl.apkd.demystifier": "https://github.com/apkd/Apkd.UnityDemystifier.git"
}
}
Manual
From source (Unity 2018.3+)
Clone/download this repository into the Assets
directory of your project.
Using compiled DLL (Unity 2017.1+)
Download and extract the latest release zip into the Assets
directory of your project.
Configuration
The package will work immediately after installation without any additional steps.
(Unity 2018.3+) You can customize the stack trace by defining the following compilation symbols in the project settings:
APKD_STACKTRACE_HIDEPARAMS
- Hide the method parameter list completely. The most compact option.APKD_STACKTRACE_SHORTPARAMS
- Display the parameter list compactly (first letter of each parameter name only).APKD_STACKTRACE_FULLPARAMS
- Shows an expanded parameter list in the method signature. You can enable this if you have an unnaturally wide monitor.APKD_STACKTRACE_NOFORMAT
- Disables stack trace font formatting. Useful if you prefer your copy-pasted stack traces and log files to be clean.APKD_STACKTRACE_DISABLE
- Restores default Unity stack traces.APKD_STACKTRACE_FILEPATH_FONTSIZE_XX
- Change the font size of the source filename/line number string toXX
(available values: 7-11, default: 8).APKD_STACKTRACE_NOCACHE
- Disable caching. Less memory usage, higher performance impact.APKD_STACKTRACE_LAMBDAORDINALS
- Shows lambda expression ordinals.
Notes
- This package overrides Unity's built-in stack trace parsing in an unsupported way and can make your editor unstable. All feedback is appreciated.
- This package is editor-only and won't be included in builds.