We help IT Professionals succeed at work.

We've partnered with Certified Experts, Carl Webster and Richard Faulkner, to bring you a podcast all about Citrix Workspace, moving to the cloud, and analytics & intelligence. Episode 2 coming soon!Listen Now


How to Disable the JIT Debugger "cordbg.exe"

teamels asked
Medium Priority
Last Modified: 2011-08-18
I am trying to find a way to remove the "cordbg.exe" reference from my application (if possibly) so I do not get an error that the JIT Debugger can not be found when running the application on a machine that does not have the cordbg.exe program to call when the application starts.

Is this possible or do I need this to run on every computer that uses my application ?

I think that if I install the .net sdk on the machines then it will install the cordbg.exe program but I do not want to have to install the SDK on every machine or do I need too.

Watch Question

This is the debugger for "exceptions of last resort".  The solution is to catch all possible exceptions in your code so that the debugger never gets called.  If you are seeing this, you have unhandled exceptions in your code...


If there were unhandeled exceptions wouldnt Visual Studio catch this upon bulding the solution?
If I have an exception visual studio so far sees this and does not let the program build and also lets me see where the exception took place and a suggestion on how to correct this.

Do we need to call the cordbg.exe JIT Debugger to run even if the program seems to run just fine.



If it can't be disabled then how do we install the bloody bugger ? on client machines already running .NET V1.1

No, there is no requirement at handle all exceptions.  That's why Windows catches anything you don't catch.

Once again, catch ALL possible exceptions in your code and you won't need any JIT debugger.  This is not as hard as it sounds.  Just enclose the top level function in your application in a try/catch block.  You don't have to actually do anything other than catch the exception.  You can just output an error and exit, or whatever you want.

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts


I see now.  I placed the Try, Catch, Finally in the below section, which I never thought to do because it was pre-generated code by Visual Studio.  This shows that I have a reference to a .VB file that is only installed on my development computer, not any others.

#Region " Windows Form Designer generated code "

    Public Sub New()


            'This call is required by the Windows Form Designer.

Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.


Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.