Debugging in MFC code

Flaviu_ 1,011 Reputation points
2024-10-14T08:29:54.37+00:00

I have the following code:

CDBVariant var;
std::unique_ptr<CRecordset> recordset = ... initialized
recordset->GetFieldValue(i, var);

And I got an error:

User's image

I want to explore what is happen in CRecordset::GetFieldValue method, using debugging step by step: F10. But I cannot reach MFC CRecordset::GetFieldValue code at all, with or without this option checked:

User's image

The question is: how can do the debugging inside MFC code? I am using VS2022 on a MFC MDI app.

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,743 questions
{count} votes

Accepted answer
  1. RLWA32 45,661 Reputation points
    2024-10-14T12:44:36.33+00:00

    In my VS2022 I can step into MFC functions without a problem. I have set the VS2022 debugging options to use the Microsoft symbol server and load symbols for all modules.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

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.