i'm trying to debug some code attached to a service. this service has 2 .cs files implemented. The main program calls a function for a remote object which has been initialized by the service: string strCheminFile = DataLink.RemoteObject.CopyCaracMelToExcel(...);
the function is defined in the second .cs file of the service:
public string CopyCaracMelToExcel(...)
{
CopyAlgomixToExcel copyCM = new CopyAlgomixToExcel();
return copyCM.CopyCaracMelToExcel(...);
}
the function CopyCaracMelToExcel
is implemented in another class library program
CopyCaracMelToExcel(...)
'implementation of the function'
this function is also declared into an interface file:
string CopyCaracMelToExcel(...;
when i try to debug the following step into main program: string strCheminFile = DataLink.RemoteObject.CopyCaracMelToExcel(...); i can enter interface file CopyCaracMelToExcel code but not the code in the class library program where the function is implemented.
i tried to attach the service as process into the debug menu. it doesn't work. also try to start the service as external application (into debug menu).
note: the service has two .cs file. only the main .cs has PDB file generated. the name of the second .cs file where the function is implemented doesn't have a pdb file and when i try to create a new breakpoint into this .cs file : the warning is : the breakpoint will not be hit. no symbols have been loaded for this document
thanks a lot
Try using the Debugger Launch method
System.Diagnostics.Debugger.Launch();
Edit:
Have you tried these?
debugging windows service gives No symbols have been loaded message
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.