I have a C++ application. When i press F5 in visual studio application starts and i can debug it. But when I run application from windows explorer and then attach this process in visual studio I see breakpoints can be hit (they are completely red) but breakpoint does not hit. When I see modules window nothing is present there. What is problem?
C++ – Visual Studio is not loading modules when attaching to process
cdebuggingvisual studio 2010
Related Topic
- C# – How to remedy “The breakpoint will not currently be hit. No symbols have been loaded for this document.” warning
- .net – “The breakpoint will not currently be hit. The source code is different from the original version.” What does this mean
- Visual-studio – Visual Studio loading symbols
- C# – Why doesn’t Console.Writeline, Console.Write work in Visual Studio Express
- Visual-studio – How to attach Visual Studio to a process that is not started yet
- C# – Writing to output window of Visual Studio
- C++ – Image Processing: Algorithm Improvement for ‘Coca-Cola Can’ Recognition
- R – Build merge module without Devenv from .vdproj
Best Answer
Verify the code type Visual Studio is configured to load symbols. Attach To Process dialog has Select Code Type option to specify which symbols to load. Here you can select Managed symbols and/or Native symbols.
Also the assemblies should be of same version.