Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice
  2. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  3. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Rid of Debug.Log stacktrace spam

Discussion in '2018.3 Beta' started by MrLucid72, Dec 2, 2018.

Thread Status:
Not open for further replies.
  1. MrLucid72

    MrLucid72

    Joined:
    Jan 12, 2016
    Posts:
    962
    Hello,

    (Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)

    Every time you Debug.Log(),

    (Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)

    There is a bloaty, horrible line of code that generates:

    (Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)

    This is a stacktrace to the debug.log, itself. It's redundant, bloaty, an eye-sore, and unnecessary.

    (Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)

    The average Debug.Log() log is often significantly shorter than this stacktrace, itself.

    (Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)

    This means that this bloat often takes up 1/2+ the entire log file!

    (Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)

    It also makes things very difficult to read.

    (Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)

    Please remove this bloat -- I'm very surprised this isn't removed yet in 2018.3 (let alone even 5.5).

    (Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)

    Especially after numerous people have posted about it and reported it as both bug/feedback for years.

    (Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)

    Thanks

    (Filename: C:/buildslave/unity/build/artifacts/generated/common/runtime/DebugBindings.gen.cpp Line: 51)

    (PS -- There is a separate line that generates for Mono. This one is IL2CPP)
     
    Last edited: Dec 2, 2018
  2. Peter77 likes this.
Thread Status:
Not open for further replies.