VS-2019 Debugging MFC

David Webber 136 Reputation points
2020-09-11T13:03:50.997+00:00

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?

Dave

C++
C++
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.
3,753 questions
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.
1,002 questions
{count} votes

1 answer

Sort by: Most helpful
  1. RLWA32 45,691 Reputation points
    2020-09-11T18:25:42.757+00:00

    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 -
    24135-pdb.png

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

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.