How to display console.log output in Visual Studio Code for html?
问题 When I used brackets, there was a plugin to display console.log output in a panel below the source code panel, so I don't need switch to chrome and press F12 to view console.log output. But how to do that in Visual Studio Code? I use Visual Studio Code for HTML development not Node.js . 回答1: debugger-for-chrome can solve the problem. Check this link. It shows how to do that https://code.visualstudio.com/Docs/editor/debugging 回答2: You could create an index.html and link to your .js in head