3

I'm trying to debug a .Net plugin of a Windows service (actually a SharePoint service).

I use to hook my plugin with this method:

System.Diagnostics.Debugger.Break();

However, on my dev computer (Windows 2012 R2), I don't have the Debug button that allows me to choose a debugger.

I only have:

enter image description here

It miss the debug button.

How to restore it?

Steve B
  • 36,818
  • 21
  • 101
  • 174

1 Answers1

2

Found in this answer.

Go to the Tools | Options | Debugging | Just-In-Time dialog. Then make sure all Native and Managed (if you're debugging a .NET application) are checked. Next time you get a crash, the Visual Studio Just-In-Time debugger will come up.

enter image description here

And this restores automatically the Debug button:

enter image description here

Community
  • 1
  • 1
Steve B
  • 36,818
  • 21
  • 101
  • 174