I have a project that is a ClassLibrary and this DLL runs inside a Console Application, I have a requirement here where the developers of this ClassLibrary need to debug this DLL with the application, in the project properties I configured the EXE path, but usually breakpoints do not work.
- Visual Studio running as administrator
- Upgraded DLLs in the executable folder
ButifIruntheapplicationmanually(inthesamepathIconfiguredintheimageabove)andthroughtheAttachtoProcessoptionthebreakpointswork
IalsotriedtocopytheDLLandPDBafterBuildtoensurewhenIhavechangestheprogramwillhavetherecentversion(otherwisetheattachdoesnotworkcorrectly).WhatIthinkhereisthatIneedtotypea"delay" to do the attach.