Visual Studio 2005 SP2 & Debugging MFC DLL
-
I have an MFC DLL project written in VS2003. I upgraded it to VS2005 SP2 and successfully build the DLL, despite setting the project options to use the projects .PDB I am unable to debug the DLL. I was able to debug happily with VS2003 but CANNOT debug with VS2005! I have rolled back to VS2003 as until I can debug I will not be using VS2005. Has anyone else had this problem with VS2005, and did you manage to debug a DLL?
-
I have an MFC DLL project written in VS2003. I upgraded it to VS2005 SP2 and successfully build the DLL, despite setting the project options to use the projects .PDB I am unable to debug the DLL. I was able to debug happily with VS2003 but CANNOT debug with VS2005! I have rolled back to VS2003 as until I can debug I will not be using VS2005. Has anyone else had this problem with VS2005, and did you manage to debug a DLL?
-
Check that your VS finds a dll with all the debug informations. I debug VS2003 dlls with a VS2005 exe sometimes. :-O
Greetings from Germany
Yes, the projects .PDB file is output to the same folder in which my debug DLL is located as well as the EXE being run from which the DLL is called. I can debug the VS2003 version of the DLL fine, just when I convert the DLL project to VS2005 and build in debug mode I cannot debug. I have even set the Debuggong | Symbols | location to the path to the .pdb, but alas not able to hit my breakpoints! I am sure there is a bug in VS2005 being unable to debug MFC DLL's!!! But would welcome anyone who has managed to debug an MFC DLL in VS2005.
-
Yes, the projects .PDB file is output to the same folder in which my debug DLL is located as well as the EXE being run from which the DLL is called. I can debug the VS2003 version of the DLL fine, just when I convert the DLL project to VS2005 and build in debug mode I cannot debug. I have even set the Debuggong | Symbols | location to the path to the .pdb, but alas not able to hit my breakpoints! I am sure there is a bug in VS2005 being unable to debug MFC DLL's!!! But would welcome anyone who has managed to debug an MFC DLL in VS2005.
Andy H wrote:
I am sure there is a bug in VS2005 being unable to debug MFC DLL's!!!
Visual Studio will always have its problems, but that isn't one of them. I would clean the solution and shut down VS. Then delete ALL intermediate files including pdb, ilk - everything. Get rid of the Intellisense database as well. Fire up VS and do a full rebuild. If it still won't work, you've got a project settings issue somewhere. Mark
Mark Salsbery Microsoft MVP - Visual C++ :java:
-
Andy H wrote:
I am sure there is a bug in VS2005 being unable to debug MFC DLL's!!!
Visual Studio will always have its problems, but that isn't one of them. I would clean the solution and shut down VS. Then delete ALL intermediate files including pdb, ilk - everything. Get rid of the Intellisense database as well. Fire up VS and do a full rebuild. If it still won't work, you've got a project settings issue somewhere. Mark
Mark Salsbery Microsoft MVP - Visual C++ :java: