RSS

JIT (Just In Time) Debugger with Visual Studio .net 2003 and Visual Studio 2010

13 Apr

Summery:
On my system I got installs of VS2003 and VS2010.  In which VS2003 was installed first.
Trying to catch unhandled exception with vs2003 results in JIT debugger which offers only vs2010.
This article will explain how to solve this prob.

In the past few day I ran into frustrating scenario where I needed to debug Web Services with Visual Studio .net 2003.

Unfortunately, the VS JIT Dialog that pops up only displayed VS 2010 to debug with.

After plucking bit of hair and googling the web, found those articles:

  1. http://www.hanselman.com/blog/HowToTurnOffdisableTheNETJITDebuggingDialog.aspx
  2. http://msdn.microsoft.com/en-us/library/k8kf6y2a(v=vs.80).aspx
  3. http://msdn.microsoft.com/en-us/library/5hs4b7a6(v=VS.71).aspx

In which they advised to change setting from within the VS (Options > JIT Debugging) and modifying the registry,
that didn’t helped either.

Figuring out what are the changes that VS is doing in the registry while changing the debug engines in the VS > Options, I found that there is a file called:

vsjitdebugger.exe (VS2010 – C:\WINDOWS\system32\vsjitdebugger.exe)

Which is defined to run when exception occurs or on System.Diagnostings.Debug.Break().
And the file below is responsible to display the dialog with vs2003:

vs7jit.exe (VS2003 – C:\Program Files\Common Files\Microsoft Shared\VS7Debug\vs7jit.exe)

So, to make VS suggest the vs2003 debugger you have to take this “vs7jit.exe” file
rename it to  “vsjitdebugger.exe”
backup the original “vsjitdebugger.exe” (sys32)
and replace it in sys32.

(Whenever you wish to rollback, just use you backup-ed file).

The only disadvantage of this is that when ever an exception occurs it will suggest only vs2003.

Advertisements
 

2 responses to “JIT (Just In Time) Debugger with Visual Studio .net 2003 and Visual Studio 2010

  1. Ing. Juan Mancilla

    February 5, 2012 at 2:47 am

    i hope that this method will be a great solution to me case!!!

     
  2. Ing. Juan Mancilla

    February 5, 2012 at 2:53 am

    Reblogged this on Juan Luis Mancilla E. info.Blogger and commented:
    I need this!!!

     

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: