Christopher Lightfoot
Christopher Lightfoot

Reputation: 1167

How to stop IE asking which debugger to choose when **trying** to debug?

When debugging in Internet Explorer, I first get an alert box with extremely limited if not useless information (sorry IE) and choose to debug it. After selecting yes, I get another option every time to choose between 'New instance of Microsoft script debugger' and 'New instance of Visual Studio'. I'm fed up with having to click the yes button again after having clicked it once already on the alert box.

Update: I found that you can disable the Microsoft script debugger from within its own options; just disabling the JIT debugger from Tools -> Options, and JIT. This stops it appearing on the menu but now I get the dialog box asking me which one to choose and it only displays the Visual Studio - WHY? If there's only one option and you've already asked me if I want to debug, why ask again?!?! Bleh.

Can you tell I'm getting sick of clicking, "yes" twice? Lol.

Upvotes: 7

Views: 2214

Answers (6)

i_am_jorf
i_am_jorf

Reputation: 54640

This happens because that's how the just in time debugging thingy was designed.

Generally I have multiple instances of Visual Studio running and that little box lists them all so I can pick the right one. You would think it would be smart enough to just pick the one option if there is only one option, but it isn't.

Upvotes: 0

Gino
Gino

Reputation:

Just disable the Machine Debug Manager in the list of the Services!

Upvotes: 0

Chase Seibert
Chase Seibert

Reputation: 15851

This is not what you're asking for, but others coming to this thread may want to know how to disable these completely. Just disable debugging all together under:

Options -> Advanced -> Browsing -> Disable script debugging.

Upvotes: 0

PhiLho
PhiLho

Reputation: 41162

If all other solutions fail, you can try another route: using a macro language (à la AutoHotkey or AutoIt) to dismiss all prompts with one key...

Upvotes: 0

Rangachari Anand
Rangachari Anand

Reputation: 1002

Apparently the problem happens if you do not uninstall the old (crappy) Microsoft Script Debugger before you install the newer Microsoft Script Editor.

You would think that all you need to do is to uninstall the old debugger - however, according to a blog posting (which I can't recall at the moment), if you uninstall the Microsoft Script Debugger at this point, it will mess up the MSE and you will have to reinstall the MSE again. I am on a tight schedule now so I don't have the time to fix the problem properly - just living with it as best as I can.

Upvotes: 1

splattne
splattne

Reputation: 104070

Maybe not the complete solution, but you could try to set the default script debugger can be set in the registry directly. To do so, follow these steps:

  • Click Start, Run and type regedit.exe
  • Navigate to the following branch:

HKEY_CLASSES_ROOT \ CLSID \ {834128A2-51F4-11D0-8F20-00805F2CD064} \ LocalServer32

  • Backup the branch by exporting it to a file
  • In the above key, double-click (default) and set its value data to:

    "C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\devenv.exe"

    (or whatever your path to devenv.exe is)

  • Exit the Registry Editor.

Upvotes: 0

Related Questions