Enable Visual Studio javascript debugging on IE11 and other browsers

 Author: Shengtao Zhou       Created: 1/11/2019 8:35:51 PM       Modified: 2/7/2020 4:58:58 AM   More...

1. Enable script debugging

On the right top core of IE11, click "Settings" (the gear icon) -> Click "Advance" tab -> scroll down to "Browsing" secition -> Clear "Disable script debugging (Internet Explorer)

2. Trigger debug in javascript

Another trick is to add "debugger;" to your javascript, it will stop there when you debug on other browsers (like Chrome, Edge, etc). This will resolve the issue that even script debugging is enabled, but debug still doesn't stop (probably because the old script is cached).

3. Attach to  browser

Visual Studio menu of debugging has an option to attach to the browser. This also allows you to choose script debugging, just not as convenient.

4. Log javascript object

In javascript code use console.log(obj) to log object, then start debugging, on the browser, click F12 open developer console, select console, you can see the object values logged.

5. Debug in Chrome DevTools

On chrome DevTools (click F12), you can view your javascript code and set break-points for debugging.

More...          Back to List          

(Please enter you comments between 100 to 2000 characters. Thanks for your contribution.) 

         Created:       Modified: 

Editing a comment

       (Please enter you comments between 100 to 2000 characters. Please login before edit comment.) 

div class="col-md-2">