I have a C # service calling a C DLL that was originally written in VC6.
There is an error in the DLL that I am trying to verify.
After a nightmare trying to get debugging work, I eventually added a dll to the VS2005 solution containing C # Service, and added the necessary _CRT_SECURE_NO_WARNINGS .
The debug version of the service is logged using the "installutil.exe" tool.
I can make the debugger break just before the line where the dll is entered by calling System.Diagnostics.Debugger.Break(); .
I found several instructions on the network regarding the transition to debugging unmanaged code and enabled the "Enable unmanaged code debugging" checkbox, I also tried to enable the options "Export"> "Debugging-> Native" Load DLL and "Enable RPC debugging" (although this is not COM ) I also copied the dll debug and .pdb to the same bin directory as the service.
However, unmanaged code is not part of it, which I really need.
UPDATE I found the Debug Type in the properties of the DLL and set it to “Mixed” as suggested by several sites, but to no avail.
UPDATE2 . My project now issues the debugging DLL and pdb to the same directory as the debugging service. DLL debugging still not possible.
source share