Cannot step into MFC source at debugging time - VS2017

C V 46 Reputation points
2022-11-28T07:41:20.173+00:00

Hi all,

As in the subject I cannot simply step into the MFC source code at debugging time.
My dev environment is fully updated. I'm using VS2017 professional.

Steps:
I created a default MFC project, compiled it and run it step by step but when I want to step into MFC code it says it cannot find the code. And even if I browse and point VS under
C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VC\Tools\MSVC\14.16.27023\atlmfc\src
I attached a screenshot about the message it says.

The properties of the projects are all left default and the platform toolset is: Visual Studio 2017 (v141)

The symbols are correctly downloaded.

Any idea how to fix that?

Thanks!
264656-bug.png

Developer technologies | Visual Studio | Debugging
{count} votes

1 answer

Sort by: Most helpful
  1. C V 46 Reputation points
    2022-11-28T08:09:45.563+00:00

    Update:

    If I build my program linking the MFC as static library then it works perfectly. Unfortunately I don't want to link MFC statically against my project.

    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.