Step 1: Create a New Project
- Launch Visual Studio 2017 and select “File” > “New” > “Project” from the menu bar.
- Choose a name and location for your project, and then click “Create.”
Step 2: Enable Debugging in Internet Explorer
Prepare for bewilderment as you enable debugging in Internet Explorer to pave the way for debugging in Visual Studio 2017. Follow these steps:
- Launch Internet Explorer and select “Tools” > “Internet options” from the menu bar.
- Click on the “Advanced” tab and scroll down to the “Browsing” section.
- Check the “Disable script debugging (Internet Explorer)” and “Disable script debugging (Other)” options.
- Uncheck the “Display a notification about every script error” option.
- Click “Apply” and then “OK” to save your changes.
Step 3: Enable Script Debugging in Visual Studio 2017
Prepare for shock as you enable script debugging in Visual Studio 2017 with these steps:
- Launch Visual Studio 2017 and open your project.
- Press the “F5” key to start debugging.
- In the “Solution Explorer” window, double-click the “Properties” node for your project.
- Click “Save” to save your changes.
Step 4: Start Debugging
Prepare for amazement as you finally start debugging! Follow these steps:
- Launch your web application in Internet Explorer.
- In the “Developer Tools” window, select the “Debugger” tab.
- Set breakpoints in your code by clicking on the line numbers in the “Sources” pane.
- Use the “Call Stack” pane to navigate through the execution path of your code.
- Use the “Console” pane to view log messages or interact with your code.
- When you’ve identified the issue, make the necessary changes to your code and then save your changes.