Skip to content
This repository has been archived by the owner on Jun 5, 2024. It is now read-only.

Improved stack trace display for Unity.

License

Apache-2.0, Unknown licenses found

Licenses found

Apache-2.0
LICENSE
Unknown
LICENSE.meta
Notifications You must be signed in to change notification settings

apkd/UnityDemystifier

 
 

Repository files navigation

Apkd.UnityDemystifier

Improved stack trace display for Unity, based on Ben.Demystifier. Work in progress.

Before

before

After

after

Requirements

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 to XX (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.

Packages

No packages published

Languages

  • C# 100.0%