如何在 Visual Studio Code for html 中显示 console.log 输出? [英] How to display console.log output in Visual Studio Code for html?

查看:48
本文介绍了如何在 Visual Studio Code for html 中显示 console.log 输出?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我使用括号时,有一个插件可以在源代码面板下方的面板中显示 console.log 输出,所以我不需要切换到 chrome 并按 F12 来查看 console.log 输出.

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.

但是如何在 Visual Studio Code 中做到这一点?

But how to do that in Visual Studio Code?

我使用 Visual Studio Code 进行 HTML 开发,而不是 Node.js.

I use Visual Studio Code for HTML development not Node.js.

推荐答案

debugger-for-chrome 可以解决问题.检查此链接.它显示了如何做到这一点https://code.visualstudio.com/Docs/editor/debugging

debugger-for-chrome can solve the problem. Check this link. It shows how to do that https://code.visualstudio.com/Docs/editor/debugging

这篇关于如何在 Visual Studio Code for html 中显示 console.log 输出?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆