How to debug a running DLL?
A. avenger_sb25 quoted :- Well, if you are using the Visual Studio IDE, press F9 to set a breakpoint in the source file. Then, go to: Project>>Settings>>Debug tab. In the “Executable for debug session:” edit box, browse and select the EXE file that is going to use your DLL. Then press ‘OK’ Now run your program by clicking the ‘!’ icon or on the toolbar. This will run the EXE that you selected earlier. Now if that program (EXE) makes use of an exported function from your DLL, and if you have setup your breakpoints correctly, you can debug your DLL…… renjith_sree quoted :- Put the EXE file name in Project>Settings>Debug (executable for debug section).