Visual Studio Development Bookmark and Share   
 index > Visual Studio Debugger > Disable VS JIT?
 

Disable VS JIT?

Is there anyways to disable visual studio JIT?

When I use other debuggers sometimes visual studio will popup with the following

http://i34.tinypic.com/2z6in7t.jpg

Oddly enough when I click okay and then no the debugger I am using will break on the exception like normal. Will disabling JIT fix this? Or is there a way to just disable this feature in VS?
high6  Sunday, October 11, 2009 3:04 PM
Hello,

Thanks for your detailed screenshot of the issue! It seems that there is another debugger in our system. Please try to detach the process from the current debugger and then launch Visual Studio Debugger. Once Visual Studio Debugger is launched the exception will be highlighted automatically.

To disable just-in-time debugger, we need to use the registry editor to delete the following registry keys: 
   HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AeDebug\Debugger
   HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\DbgManagedDebugger

On a 64-bit machine:
   HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows NT\CurrentVersion\AeDebug\Debugger
   HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\.NETFramework\DbgManagedDebugger

For more information, please read:
http://msdn.microsoft.com/en-us/library/5hs4b7a6(VS.80).aspx
Best regards,
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
If you have any feedback, please tell us.
Welcome to the All-In-One Code Framework!
  • Marked As Answer byhigh6 Monday, October 12, 2009 4:08 AM
  •  
Roahn Luo  Monday, October 12, 2009 3:08 AM
Hello,

Thanks for your detailed screenshot of the issue! It seems that there is another debugger in our system. Please try to detach the process from the current debugger and then launch Visual Studio Debugger. Once Visual Studio Debugger is launched the exception will be highlighted automatically.

To disable just-in-time debugger, we need to use the registry editor to delete the following registry keys: 
   HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AeDebug\Debugger
   HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework\DbgManagedDebugger

On a 64-bit machine:
   HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows NT\CurrentVersion\AeDebug\Debugger
   HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\.NETFramework\DbgManagedDebugger

For more information, please read:
http://msdn.microsoft.com/en-us/library/5hs4b7a6(VS.80).aspx
Best regards,
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
If you have any feedback, please tell us.
Welcome to the All-In-One Code Framework!
  • Marked As Answer byhigh6 Monday, October 12, 2009 4:08 AM
  •  
Roahn Luo  Monday, October 12, 2009 3:08 AM

You can use google to search for other answers

Custom Search

More Threads

• Debugging Visual Studio application
• Cannont debug a website, Breakpoints cannot be hit for some reason
• execute windows service & Attach process at same time
• Edit and continue managed code remotely
• Not able to find debug information if we use .pdb file build using Microsoft visual 6 in visual studio 2005.
• Source code/Program counter misaligned when debugging VS 2003 .net
• Switching back and forth between source and disassembly debugging in VC8
• Async download won't work when started from VS on an Athlon64
• Wierd Debugger/Linker Error
• Hang up of PC when debugging Multithreaded Mixed C++/C# application