How to Disable the JIT Debugger "cordbg.exe"

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.

thanks
teamels
teamelsAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

jhanceCommented:
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...
teamelsAuthor Commented:
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.

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

thanks
teamels
jhanceCommented:
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.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
teamelsAuthor Commented:
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()

        MyBase.New()

        Try
            'This call is required by the Windows Form Designer.
            InitializeComponent()

thanks
teamels
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Programming

From novice to tech pro — start learning today.