【发布时间】:2019-06-09 13:28:42
【问题描述】:
我正在vscode 中学习 javascript,并使用 liveServer 扩展来让我的 html 和 js 在 chrome 上运行……我在“inspect element->console”中看到了我的 js 输出,效果很好……现在我已经看到 chrome 开发人员工具集成在 vscode 中,您可以从帮助中在 vscode 中打开它们,然后选择开发人员工具......但问题是我没有在那里得到我的 js 输出......怎么做......我正在从 youtube 上的教程中学习——“https://www.youtube.com/watch?v=W6NZfCO5SIk”,他正在做我想要的时间戳 16:11(可变部分)的确切事情。
我已经尝试更改 liveserver 的端口并将默认浏览器设置为 null 最终打开边缘浏览器。
当我使用实时服务器扩展时,这一切都会发生。
我希望我的 js 输出在 console 上,但我明白了:
[Extension Host] [32mServing "c:\VCodeCpp\" at http://127.0.0.1:5500[39m
workbench.main.js:238 [Extension Host] [36mReady for changes[39m-------
当更改 js 文件中的某些内容时,它会说
[Extension Host] [36mChange detected[39m c:\VCodeCpp\index.js----------
虽然chrome 的输出非常好
【问题讨论】:
标签: google-chrome visual-studio-code chrome-debugging chrome-devtools-protocol