Anatoly Maltsev
Anatoly Maltsev

Reputation: 77

Debugging C# application with dll's

I have sources of main executable and several dll's written on C#. If there any way to debug them together in VS, so that when the main programm calls some method from dll, debugger goes there too?

Upvotes: 0

Views: 134

Answers (1)

StarPilot
StarPilot

Reputation: 2272

If the DLLs are written in .Net, then your Visual Studio IDE Debugger will naturally follow them as long as you have the PDBs.

However, if the DLLs are written in non .Net, such as native "C/C++" code, then you will need to set your IDE debugger to mixed mode using both the appropriate .Net setting and native. By default, the IDE debugger will be set to "automatic" and may or may not decide to include native in your debugging options. Just set it manually if the automatic doesn't include "native" when you are trying to include the non-.Net DLLs.

Upvotes: 2

Related Questions