Create an account


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Changes to script debugging in Visual Studio 15.7

#1
Changes to script debugging in Visual Studio 15.7

<div style="margin: 5px 5% 10px 5%;"><img src="http://www.sickgaming.net/blog/wp-content/uploads/2018/06/changes-to-script-debugging-in-visual-studio-15-7.png" width="902" height="434" title="" alt="" /></div><div><p>We’re always looking for ways to make developing with Visual Studio faster.  One of the tasks developers do many times a day is launching debugging sessions.  We identified that script debugging added about 1.5s per F5, but only about 15.5% of people actively debugged script using Visual Studio.</p>
<p>Based on the above, in Visual Studio 15.7 we made the decision to turn off script debugging by default to improve the overall experience for most users. If you want to turn the capability back on, you can do it from Tools | Options | Debugging | and check “Enable JavaScript debugging for ASP.NET (Chrome, Edge, and IE):</p>
<p><a href="http://www.sickgaming.net/blog/wp-content/uploads/2018/06/changes-to-script-debugging-in-visual-studio-15-7.png"><img src="http://www.sickgaming.net/blog/wp-content/uploads/2018/06/changes-to-script-debugging-in-visual-studio-15-7.png" alt="" width="902" height="434" class="alignnone size-full wp-image-14175" /></a></p>
<p>We also added the following dialog when you attempt to set a breakpoint with script debugging disabled:</p>
<p><a href="http://www.sickgaming.net/blog/wp-content/uploads/2018/06/changes-to-script-debugging-in-visual-studio-15-7-1.png"><img src="http://www.sickgaming.net/blog/wp-content/uploads/2018/06/changes-to-script-debugging-in-visual-studio-15-7-1.png" alt="" width="602" height="237" class="alignnone size-full wp-image-14165" /></a></p>
<p>When script debugging is ON, Visual Studio automatically stops debugging when the browser window is closed. It will also close the browser window if you stop debugging in Visual Studio. We added the same capability to Visual Studio when script debugging is OFF under Tools | Options | Project and Solutions | Web Projects:</p>
<p><a href="http://www.sickgaming.net/blog/wp-content/uploads/2018/06/changes-to-script-debugging-in-visual-studio-15-7-2.png"><img src="http://www.sickgaming.net/blog/wp-content/uploads/2018/06/changes-to-script-debugging-in-visual-studio-15-7-2.png" alt="" width="902" height="434" class="alignnone size-full wp-image-14185" /></a></p>
<p>With this option enabled:</p>
<ul>
<li>Visual Studio will open a new browser window when debugging starts</li>
<li>Visual Studio will stop debugging when the browser window is closed</li>
</ul>
<p>The following matrix shows you all the available options and the expected behavior for each combination:</p>
<table width="100%">
<tbody>
<tr>
<td width="21%"><strong>Enable JavaScript debugging for ASP.NET (Chrome, Edge and IE)</strong></td>
<td width="20%"><strong>Stop debugger when browser window is closed</strong></td>
<td width="21%"><strong>What happens when you start debugging</strong></td>
<td width="21%"><strong>What happens when you stop debugging</strong></td>
<td width="15%"><strong>What happens when you close the browser window</strong></td>
</tr>
<tr>
<td width="21%">TRUE</td>
<td width="20%">TRUE</td>
<td width="21%">New browser window always pops up</td>
<td width="21%">New browser window always goes away, with all open tabs</td>
<td width="15%">Debugging stops</td>
</tr>
<tr>
<td width="21%">TRUE</td>
<td width="20%">FALSE</td>
<td width="21%">New browser window always pops up</td>
<td width="21%">New browser window always goes away, with all open tabs</td>
<td width="15%">Debugging stops</td>
</tr>
<tr>
<td width="21%">FALSE</td>
<td width="20%">TRUE</td>
<td width="21%">New browser window always pops up</td>
<td width="21%">New browser window always goes away, with all open tabs</td>
<td width="15%">Debugging stops</td>
</tr>
<tr>
<td width="21%">FALSE</td>
<td width="20%">FALSE</td>
<td width="21%">Opens new tab if browser window already exists</td>
<td width="21%">Browser tab/window stays open</td>
<td width="15%">Debugging continues</td>
</tr>
</tbody>
</table>
<p>If you want Visual Studio to return to its default pre-15.7 behavior, all you have to do is enable script debugging in Tools | Options | Debugging | and check “Enable JavaScript debugging for ASP.NET (Chrome, Edge, and IE). If you notice any unexpected behavior with these options please <a href="https://docs.microsoft.com/en-us/visualstudio/ide/how-to-report-a-problem-with-visual-studio-2017">use report a problem in Visual Studio</a> to let us know. If you have any feedback or suggestions regarding this change please let us know on <a href="https://visualstudio.uservoice.com/forums/121579-visual-studio-ide">uservoice</a> or simply post a reply to this post.</p>
<p> </p>
</div>
Reply



Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum software by © MyBB Theme © iAndrew 2016