tambre tambre - 2 months ago 35x
C++ Question

Visual Studio 2015 call stack displays <Unknown function>

Recently after doing a clean install of Windows 10 Pro on my computer, I noticed that whenever I break my program and open the call stack, the call stack shows the application name and line numbers, but the function name is displayed as

<Unknown function>
. The call stack can be navigated as usual, but the missing function names are very annoying.

I've tried the following:

  • Made sure that I'm running a debug build with full symbol generation

  • Confirmed that all relevant debug symbols are loaded

  • Tried completely reinstalling Visual Studio (3 times)

  • Resetting all my Visual Studio settings to the defaults

  • Deleting/cleaning build and user-specific files

  • Making sure my Visual Studio is up-to-date (Version 14.0.25123.00 Update 2)

Even creating a new Win32 C++ console application from the default template and breaking on the
return 0;
<Unknown function>
's in the call stack.



How would I make the call stack display the correct function names?


The problem turned out to be the missing cppdebug.dll and cppdebug.vsdconfig from the Common7\Packages\Debugger, as Patrick suspected. Visual Studio unfortunately gives no indication of them missing being a problem and reinstalling or repairing the installation doesn't help either. Fortunately, I was able to obtain those files through other means.
Placing the files equivalent to your Visual Studio version fixes the problem.

cppdebug.dll and cppdebug.vsdconfig for different Visual Studio versions: