Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Javascript Console window missing in Visual Studio 2019

I am debugging an Office Add-in. When I attach the debugger and select Visual Studio 2019 as the debugger target, the debugger successfully attaches and I can inspect the DOM. However, there is no option in the Debug or Debug -> Windows menu to open the Javascript Console window like there was in VS 2017.

enter image description here

What am I missing?

like image 916
Dave Avatar asked Apr 27 '19 16:04

Dave


People also ask

How do I get the JavaScript console code in Visual Studio?

Open the JavaScript file in VSCode, then use shortcut Ctrl + Alt + N , the code will run and the output will be shown in the Output Window.

How do I view console output in Visual Studio 2019?

In Visual Studio choose VIEW > OUTPUT. You will see the results above in this output window after changing two settings below.


Video Answer


1 Answers

It seems Javascript console window has been removed in VS2019. Please check vs2019 release notes.

  • The ability to use JavaScript Console functionality in ASP.NET projects has been removed. We recommend that customers use Console included within their favorite browser devtools.

In addition: Other member has submitted a feature request: Bring back javascript console. You can vote for it and if it gets enough points, the product team would consider it.

like image 171
LoLance Avatar answered Oct 04 '22 19:10

LoLance