Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to bypass "Visual Studio Just-In-Time Debugger" prompt

Visual Studio Just-In-Time Debugger prompts to select "Possible Debuggers",
only "New instance of Microsoft Visual Studio 2010" is available,
I tick "Set the currently selected debugger as the default", click "Yes",

but, the dialog keeps being displayed every time.
I am debugging JavaScript in IE8 on Windows 7 x64.

How do I bypass this prompt?
These registry values do not solve the problem:

[HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AeDebug]
"Auto"="1"

[HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows NT\CurrentVersion\AeDebug]
"Auto"="1"

like image 411
Carlos Gil Avatar asked Sep 25 '10 01:09

Carlos Gil


People also ask

How do I get rid of Just-In-Time debugger in Visual Studio?

Enable or disable Just-In-Time debugging in Visual Studio You can configure Just-In-Time debugging from the Visual Studio Tools > Options (or Debug > Options) dialog box. To enable or disable Just-In-Time debugging: On the Tools or Debug menu, select Options > Debugging > Just-In-Time.

How do I skip the code while debugging in Visual Studio?

You can also click on the line you want to skip to and hit Ctrl+F10 (Run to Cursor).

How do I skip a line in debugging?

The "Set Next Statement" (CTRL+SHIFT+F10) shortcut will work at the end of a function... but you need to use the mouse though as well. On VS 2019 there are those green arrows in front of lines, hold CTRL key and you can set next statement directly there, skipping anything in between.


2 Answers

I actually just did this the other day.

In the following registry key:

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Messenger\Client]

Create 2 new DWORDs (Right-click --> New --> DWORD Value)

PreventAutoRun and PreventRun

Set both values to 1

like image 187
Chibu Avatar answered Sep 28 '22 14:09

Chibu


Have you tried doing so directly from Visual Studio?

http://msdn.microsoft.com/en-us/library/5hs4b7a6.aspx

Scroll to "Enabling or disabling Just-In-Time debugging".

You can disable it only for Script if that's what you want.

Let me know how this works for you.

like image 43
Shinnok Avatar answered Sep 28 '22 15:09

Shinnok