visual-studio-code - 在 Visual Studio Code 的 HTML 文件中的脚本中创建 .js 断点?
问题描述
是否可以使用 Visual Studio 在 .html 文件中创建断点?
我可以选择在 .js 文件中创建断点,但不在 .html 文件中(甚至在 tag.js 文件中)。
<html>
<body>
<p> testing</p>
<script type='javascript'>
alert('testing');
alert ('testing2');
</script>
</body>
</html>
解决方案
转到文件 -> 首选项 -> 设置 -> 调试 ->debug.allowBreakpointsEverywhere = true
推荐阅读
- javascript - javascript,如何知道变量的原始名称(不可能?)
- node.js - hexo 和发生 Unexpected 标签
- sql-server - 如果 start 不是从 0 开始,我们是否需要从 SUBSTRING 长度中删除一些字符?
- rest - Why posting to PayPal sandbox API not working for me?
- javascript - 带有可选第二个参数的回调函数
- java - Java Eclipse - 从命令提示符运行时的输出与通过 IDE 运行时的输出不同
- vba - 以没有编译错误结束。我正在比较两个字符串
- javascript - 测试字符串是否匹配正则表达式?
- c# - 需要从 URL asp.net mvc 5 获取值
- canvas - 使用fabricJS在画布上水平分布对象