VS-2019 Debugging MFC

David Webber 91 Reputation points

I'm using MFC as a shared DLL in a program with an EXE and a number of my own DLLs, some of which use MFC.

Using VS-2019, when I step through my program's DEBUG build, it won't step into the MFC library source code.

How do I get it to do so?


Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
695 questions
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
2,636 questions
{count} votes

1 answer

Sort by: Most helpful
  1. RLWA32 28,676 Reputation points

    You can use the MFC symbol files that were installed with Visual Studio. In the debugging options uncheck the Microsoft Symbol Server and add the path to the symbol files that were installed with Visual Studio.
    For example, in a VS2017 installation (32 bit VM) the locally installed MFC symbol files are used as follows -

    Of course you would specify the appropriate path on your own system to use the local files.

    No comments