VS2017: Cannot debug Dll's
-
I converted VS2008 solution (sln) to VS2017. Visual Studio is up-to-date - version 15.6.4. My solution contains tens of C++ projects - executables, dll's and lib's. Now I have a weird issue - dll's cannot be debugged in Debug configuration. In Release configuration it works - breakpoints can be used. But in Debug configuration all the breakpoints are disabled and there is a hint - "The breakpoint will not currently be hit. No symbols have been loaded for this document." When I try to load symbols (pdb) manually I'm getting a message "A matching symbol file was not found in this folder." In DLL project settings (vcxproj file) GenerateDebugInformation is true. I'm a bit confused why generated pdb file cannot be used by Visual Studio.
-
I converted VS2008 solution (sln) to VS2017. Visual Studio is up-to-date - version 15.6.4. My solution contains tens of C++ projects - executables, dll's and lib's. Now I have a weird issue - dll's cannot be debugged in Debug configuration. In Release configuration it works - breakpoints can be used. But in Debug configuration all the breakpoints are disabled and there is a hint - "The breakpoint will not currently be hit. No symbols have been loaded for this document." When I try to load symbols (pdb) manually I'm getting a message "A matching symbol file was not found in this folder." In DLL project settings (vcxproj file) GenerateDebugInformation is true. I'm a bit confused why generated pdb file cannot be used by Visual Studio.
-
I converted VS2008 solution (sln) to VS2017. Visual Studio is up-to-date - version 15.6.4. My solution contains tens of C++ projects - executables, dll's and lib's. Now I have a weird issue - dll's cannot be debugged in Debug configuration. In Release configuration it works - breakpoints can be used. But in Debug configuration all the breakpoints are disabled and there is a hint - "The breakpoint will not currently be hit. No symbols have been loaded for this document." When I try to load symbols (pdb) manually I'm getting a message "A matching symbol file was not found in this folder." In DLL project settings (vcxproj file) GenerateDebugInformation is true. I'm a bit confused why generated pdb file cannot be used by Visual Studio.
Have you converted the solution in-place (with existing output files from old VS 2008 builds)? Then try to delete all output files (especially old ones which can be identified by the time stamp).
-
I converted VS2008 solution (sln) to VS2017. Visual Studio is up-to-date - version 15.6.4. My solution contains tens of C++ projects - executables, dll's and lib's. Now I have a weird issue - dll's cannot be debugged in Debug configuration. In Release configuration it works - breakpoints can be used. But in Debug configuration all the breakpoints are disabled and there is a hint - "The breakpoint will not currently be hit. No symbols have been loaded for this document." When I try to load symbols (pdb) manually I'm getting a message "A matching symbol file was not found in this folder." In DLL project settings (vcxproj file) GenerateDebugInformation is true. I'm a bit confused why generated pdb file cannot be used by Visual Studio.
Hi, The 'Debug' build is just a text label... in other words it sounds like your DLL is being compiled with the symbols stripped out. There is nothing stopping someone from configuring 'Debug' exactly as a 'Release' build. Try using DUMPBIN /SYMBOLS[^] on your DLL to check if the symbol tables exists. Don't forget that you can PIPE the output into a text file:
DUMPBIN /SYMBOLS YourDLL.DLL > symbols.txt
Best Wishes, -David Delaune