Debug Javascript IE 9

I am using Visual Studio 2010 and IE 9. I am trying to debug javascript.js files in my solution. I set a breakpoint in the files and can't do it no matter what. I tried to do things like unsetting options in IE, like disabling a debug script. And I can’t do it no matter what.

Did I miss something? Yesterday I was able to debug javascript files, and today I can not do this.

I hit F12 and started debugging the launch in IE 9 developer tools, and he gave me a message:

'Unable to connect to the process. Another debugger can be attached to the process.

Any ideas or suggestions on what might be wrong.

+6
source share
2 answers

When you press F5 and Debug in Visual Studio, it sometimes either doesn’t attach the debugger to IE9 correctly, or usually in my case it just updates the application pool on the local running Cassini instance (your Visual Studio Dev WebServer), which is often if it's already running will not allow the proper connection of VS Debugger.

If you click on the taskbar, find the icon for Cassini (ASP.NET Developmentement Server) - just right-click and click Stop. Then go back to Visual Studio and F5, and the debugger should attach ok again.

My favorite pastime is actually CTRL + F5 and run the web application without debugging so that I can use the built-in (F12) debugger in IE9. By doing this, you will not receive the message "Could not connect to the process ...", and you will also be able to find out if your Javascript changes are actually updated or cached in your browser during development.

+7
source

Source: https://habr.com/ru/post/897424/


All Articles