Breakpoints in the main .NET environment?

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?

+3
source share
6 answers

And if you cannot use source level debugging with the Framework.Net source code provided by Microsoft, you can try another debugger. Like mdbg or even windbg.

change

.Net framework , . NetMassDownloader (pdb source) . .Net framework . SqlConnection , IL, . Lutz Reflector, .

+2

.NET .NET FW.

NetMassDownloader, .NET.

+7

Deblector - Reflector, .net :)

+3

, pdbs VS, bp .

, // " ". " ", .

, . , . ILDasm Reflector, .

" bp". - bp . , , intellisense , . , .

+3
0

Source: https://habr.com/ru/post/1696849/


All Articles