RaidOne
RaidOne

Reputation: 11

How to disable "New instance of microsoft Visual Studio" in JIT debugger in Visual Studio 2010

When my C# application launches the JIT, the the first option is "New instance of Microsoft Visual Studio" and the second one is the actual instance of VS that I have painstakingly prepared and I want to use.

Most of the time I double click on my instance, but sometimes I hit "New..." and I have to close it and start again.

So is there any way to get rid of that "New instance..." option? It should either use the existing VS instance or nothing. If possible.

Upvotes: 1

Views: 3880

Answers (1)

Brian
Brian

Reputation: 5119

  1. On the Tools menu, click Options.
  2. In the Options dialog box, select the Debugging folder.
  3. In the Debugging folder, select the Just-In-Time page.
  4. In the Enable Just-In-Time debugging of these types of code box, select or clear the relevant program types: Managed, Native, or Script. NOTE: To disable Just-In-Time debugging, once it has been enabled, you must be running with Administrator privileges. Enabling Just-In-Time debugging sets a registry key, and Administrator privileges are required to change that key.
  5. Click OK

Upvotes: 1

Related Questions