Improved stack trace display for Unity, based on Ben.Demystifier. Work in progress.
- 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).
Install the package in your project using the Asset Store page.
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"
}
}
Clone/download this repository into the Assets
directory of your project.
Download and extract the latest release zip into the Assets
directory of your project.
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.
- 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.