Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

(Re)Enabling JavaScript debugger in IE7 with Visual Studio 2008

Visual Studio 2008 comes with nice javascript debugging features.

But I have played a little with NetBeans debugger wich has installed an ugly Script Debugger from Microsoft to my IE... Normally IE should ask what do I want to use for debugging, but now I can't start debugging with Visual Studio, the Script Debugger is started automatically... After uninstalling the Script Debugger I can't debug in IE at all. Even attaching to iexplore.exe process doesn't helps...

Has installed the Script Debugger again... :(((((

How can I get back my Visual Studio debugging working in IE again?

like image 843
Malik Amurlayev Avatar asked Mar 18 '09 16:03

Malik Amurlayev


People also ask

How do I run JavaScript in debug mode?

With a debugger, you can also set breakpoints (places where code execution can be stopped), and examine variables while the code is executing. Normally (otherwise follow the steps at the bottom of this page), you activate debugging in your browser with the F12 key, and select "Console" in the debugger menu.

How do I disable JavaScript debugging in Visual Studio?

You can go to Tools > Options > Debugging > General > and then in the right part almost like in the middle of the scroll you'll find the option to enable or disable JavaScript debugging.


2 Answers

I have the same problem. It's not quite resolved yet, but I'll share what I have.

To let IE see the debugger again do this: 1. Open Visual Studio. 2. Go to Tools > Options > Debugging > Just-In-Time. 3. Enable Script checkbox, click OK. 4. Close Visual Studio.

Now when I try to debug it opens Visual Studio but gives this error: "Unable to attach to the crashing process. An error occurred that usually indicates a corrupt installation (code 0x80040155). If the problem persists, repair your Visual Studio installation via 'Add or Remove Program' in Control Panel."

When I get back in the office tomorrow I'll try repairing Visual Studio.

like image 93
Sarel Botha Avatar answered Oct 12 '22 10:10

Sarel Botha


make sure you don't have script debugging disabled in IE Settings. May not be the answer to your situation but I forget this all the time.

IE7 Tools - Internet Options - Advanced

like image 22
Jon Erickson Avatar answered Oct 12 '22 11:10

Jon Erickson