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

Developer technologies | Visual Studio | Debugging
Developer technologies | C++
Developer technologies | 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.
{count} votes

1 answer

Sort by: Most helpful
  1. RLWA32 51,536 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' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.