I have a third-party library that internally constructs and uses the SqlConnection class. I can inherit from the class, but it has a lot of overloads, and so far I have not been able to find the right one. I would like to use the parameter for the connection string used.
Is there a way to set a breakpoint in the core of the .NET library? In particular, in the constructors of the SqlConnection class, so that I can look at the stack trace and see where it is actually being built?
If it is not, can I do it?
In particular, what I want to do is use the application name parameter to make our application easier to identify on the server when viewing connections.
Edit : I think I need more help. I think that I included everything related to the support of the symbol server, and I noticed that the directory I configured was replenished with directories containing .pdb files. However, I cannot get the actual source for the SqlConnection class to become available.
Is there any specific guide on how to do this successfully?
source
share