简体   繁体   English

如何运行 .scripts 命令? 关于 vscode 扩展的“Debugger for Chrome”

[英]How do I run the .scripts command? About the "Debugger for Chrome" of vscode extension

What I tried我试过的

I ran the command as shown in the image below.我运行了如下图所示的命令。 However, the expected result was not obtained.然而,并没有得到预期的结果。 Can you tell me what's wrong?你能告诉我有什么问题吗?

Execution screen screenshot执行屏幕截图

console log控制台日志

.scripts
Uncaught SyntaxError: Unexpected token '.'

Reference site参考网站

https://marketplace.visualstudio.com/items?itemName=msjsdiag.debugger-for-chrome&ssr=false#overview https://marketplace.visualstudio.com/items?itemName=msjsdiag.debugger-for-chrome&ssr=false#overview

The.scripts command .scripts 命令

This feature is extremely useful for understanding how the extension maps files in your workspace to files running in Chrome.此功能对于了解扩展如何将工作区中的文件映射到 Chrome 中运行的文件非常有用。 You can enter.scripts in the Debug Console to see a listing of all scripts loaded in the runtime, their sourcemap information, and how they are mapped to files on disk.您可以在调试控制台中输入 .scripts 以查看在运行时加载的所有脚本的列表、它们的源映射信息以及它们如何映射到磁盘上的文件。 The format is like this:格式是这样的:

I'm not sure if you found a solution to this yet but I just faced this same issue.我不确定您是否找到了解决方案,但我刚刚遇到了同样的问题。

Inside of vs code you can set debug.javascript.usePreview: false.在 vs 代码中,您可以设置 debug.javascript.usePreview: false。 (Ctrl +,). (Ctrl +,)。 Make sure you set this to false for your workspace and you should be good to go.确保为您的工作区将此设置为 false,并且您应该对 go 很好。

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

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