C ++ does not require metadata storage applications to facilitate debugging. And if such metadata cannot be found, the debugger does not have much difficulty working. All he sees is the machine code that runs, so he should back off, showing you a simple assembler code.
However, compilers can usually create debugging information that the debugger can use. They basically tell the compiler what the source code looks like (or where to look for the source files), and what instructions match the lines of source code, allowing you to debug the actual C ++ code you wrote.
You did not specify which compiler or debugger you are using, so I cannot tell you how to use this in your particular case.
In GCC, you should compile with -g , as far as I remember, in order to generate debugging information for using GDB.
In Visual Studio, it should work only in most cases (although I believe that if you start an "Empty C ++ project", you should include debugging information yourself in the project properties)
source share