Don't hit javascript breakpoints

PLEASE PAY CAREFULLY THAT I NOW RETURN TO MY CAR TO REMOVE THIS QUICKLY AND CANNOT ANY LONG CHECK ANY ANSWERS.

I had a problem trying to debug javascript using Visual Studio 2008. I recently installed IE9, but this may not be the reason.

My javascript is in a separate (.js) file, but whenever I put a breakpoint on a line, it just becomes empty and says that it will not be deleted. Then, of course, this is not so.

I went into IE Internet options> advanced menu and did not notice the following:

disable script debugging (IE)

disable script debugging (other)

I also rebooted my computer. But still the breakpoints were not affected.

Change I just noticed that there are two entries iexplore.exe in the "Attach to process" window. This, of course, is not so! But how to fix it.

enter image description here

Update :

Other things I've tried now:

  • Uninstall IE9 and use IE8 instead.
  • Uncheck "enable third-party browser extensions" in the "IE Tools" menu> "Options" menu
+4
source share
5 answers

Try using the javascript keyword "debugger"; in the line you want to set a breakpoint. It never fails me. = P

+4
source

Try disabling third-party browser extensions for this article .

In IE, go to Tools> Internet Options> Advanced and clear the Enable third-party browser extensions (requires restart) check box.

Make sure you restart IE.

0
source

IE has a debugger that is disabled by default, so try pressing F12 and go to the "Script" tab and click on "Start Debugging", which will turn brakepoins into AND debugger; will only work in debug mode

0
source

Use the correct browser

I am making most of my javascript developer in Firefox with the Firebug plugin and Chrome with the developer tools (F12).

Firebug is especially awesome for navigating through code, once you have tried it, you will never want to use anything else.

You can use Firefox / Firebug in conjunction with Visual Studio, while this will not allow you to debug an alternative to using IE inside your IDE, it is rather unreliable. Then you can easily debug your JavaScript in the Firefox browser, which provides much better step-by-step debugging support and color coding for easy identification of javascript objects (arrays, strings, dates, numbers, etc.).

enter image description here

-3
source

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


All Articles