简体   繁体   English

如何在 VS Code 上显示 console.log 结果?

[英]How to show console.log results on VS Code?

Okay I'm not sure what's the best way to phrase this question but how do I get the results from my console.log (line 14) to show up on the console/terminal?好的,我不确定表达这个问题的最佳方式是什么,但是如何从我的 console.log(第 14 行)中获取结果以显示在控制台/终端上? I'm hoping to see the results of random rgb generated for each col every time I click the button but it's not showing logs unfortunately.我希望每次单击按钮时都能看到为每个列生成的随机 rgb 结果,但不幸的是它没有显示日志。

在此处输入图像描述

Using console.log() debugging in Visual Studio Code在 Visual Studio Code 中使用 console.log() 调试

Step 1 : Create a folder and call it consoledebug Step 2 : Start Visual Studio Code, choose “open” – select that folder Step 3 : Select New File, call it index.html Step 4 : Add some HTML/JS and save it Step 5 : Select the “Run and Debug” icon and press the “Run and Debug” button步骤 1 :创建一个文件夹并将其命名为 consoledebug步骤 2 :启动 Visual Studio Code,选择“打开”- select 该文件夹步骤 3 :Select 新建文件,将其命名为 index.html步骤 4 :添加一些 HTML/JS 并保存步骤5 : Select “Run and Debug”图标并按下“Run and Debug”按钮

For More Informations Visit: https://christianheilmann.com/2021/07/30/using-console-log-debugging-in-visual-studio-code/如需更多信息,请访问: https://christianheilmann.com/2021/07/30/using-console-log-debugging-in-visual-studio-code/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM