Search code examples
c++visual-studioperformancevisual-studio-debuggingprofiler

VS profiler, source information not available


I'm trying to use visual studio performance profiler for the first time and I'm interested in a specific function of mine which is successfully detected by the profiler. However, when I click on it I get "Source information is not available" .

How do I fix this?

enter image description here

All external functions from libraries are visible. Any function that is in "lab.cpp" won't show. I mean, not even "main" is available. This is the only file I edit, I write all my code in there:

enter image description here


Solution

  • In case someone else has the same problem, I solved it by setting the "Debug Information Format" which was previously empty in my cpp file's(the file containing the functions) General Properties:

    enter image description here