Search Unity

[Bug] Unity console can't show callstack file names for pre-compiled dll lines without MDB file

Discussion in 'Editor & General Support' started by Xtro, Mar 15, 2020.

  1. Xtro

    Xtro

    Joined:
    Apr 17, 2013
    Posts:
    608
    Unity console can't show callstack file names and line numbers for pre-compiled dll lines without MDB file

    Bug report: https://fogbugz.unity3d.com/default.asp?1227953_liiqggmmfodioe9m
    Issue tracker: Pending

    I encountered this problem on 2019.2.15 and 2019.3.5.

    A) Superpig (a Unity employee) tells me MDBs aren't required anymore with the new scripting runtime which was set as default some Unity versions ago.
    B) Unity generates MDB files from PDB files automatically ONLY SOMETIMES; not always. Most of the time it doesn't generate. I don't know why this is so random.

    My actual problem is, Unity console can't show callstack file names and line numbers for pre-compiled dll lines without MDB file.

    Repro steps:

    1) Open the test scene in this project.
    2) Enter play mode.
    3) See the null exception in console.
    4) Click once on null exception entry in console to see its details.
    5) Notice the file name and line number for "RectTransformExtensions.AnchorsToCorners" line are displayed correctly as "E:/Projects/WindowsAndWidgets/Assets/Commons/Atesh/.Source/Atesh/Extensions/RectTransformExtensions.cs:42"
    6) Delete the Atesh.dll.MDB file in the project.
    7) Enter play mode.
    8) Check the file name and line number for the same exception.
    9) See it's displayed as "<ec0245ec795b4469b26357b86b3d7e7b>:0"
     
  2. Xtro

    Xtro

    Joined:
    Apr 17, 2013
    Posts:
    608