1

I would like to debug a C# DLL I'm developing for a plugin that is used by some third-party production .EXE for which I do not have the code.

How should I configure the Visual Studio 2010 Express C# solution so that I can set breakpoints that are honoured by Visual Studio when I execute the third-party .EXE that loads my DLL?

Pep
  • 1,957
  • 2
  • 24
  • 40
  • 1
    Debug->Attach to process – DrKoch Apr 06 '15 at 14:52
  • Go to `Debug` menu and choose `Attach To Process`. Select the third party tool process and click ok. Your break point should get hit. – Rick S Apr 06 '15 at 14:52
  • In some cases, most reasonable way is to use `Debugger.Break()` and then attach a debugger – Alex K. Apr 06 '15 at 14:55
  • @DrKoch Is attaching a debugger available for Visual Studio 2010 Express C#? I do not see this menu item in my VS 201 C# and I do not see VS 2010 either listed here: https://msdn.microsoft.com/en-us/library/3s68z0b3.aspx – Pep Apr 06 '15 at 15:05
  • Probably you need a more complete Version of Visual Studio to do this. It is the way to go. – DrKoch Apr 06 '15 at 15:09
  • I don't think this is a duplicate. The link above is a completely different question – DrKoch Apr 06 '15 at 15:12

0 Answers0