debugging - 如何在 WebStorm 中调试 Deno 应用程序

标签 debugging webstorm jetbrains-ide deno

就像 Node.js 一样。

运行和调试 Node.js NodeJs Debugging

最佳答案

WebStorm 支持 V8 Inspector 协议(protocol),所以你很好:

  1. 转到“调试配置”(Alt+Shift+9)
  2. 添加配置(左上角“+”)
  3. 选择“附加到 Node.js/Chrome”
  4. 确保选择了“Chrome”选项(应该是默认选项)

enter image description here

  1. 点击“Apply”和“Debug”启动调试器

  2. 创建断点

  3. 在调试器运行的情况下,使用 --inspect-brk 选项运行您的脚本:

deno run --inspect-brk -A app.ts

现在它可以在 IDE 中正常工作。您可以使用 Debug View 介入、结束等。

enter image description here

我们应该期待 future 某个时候的插件。

来自 deno debugger :

Deno supports the V8 Inspector Protocol.

It's possible to debug Deno programs using Chrome Devtools or other clients that support the protocol (eg. VSCode).

关于debugging - 如何在 WebStorm 中调试 Deno 应用程序,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61876423/

相关文章:

java - 运行时不调用打印方法,调试时调用

intellij-idea - PhpStorm 检查器无法识别 XML 属性中的冒号

javascript - 在 WebStorm 中为 node_modules 启用代码完成

intellij-idea - 在注释栏中显示全名

asp.net-mvc - "Unable to evaluate expression"和异步 CTP

c++ - 如何在 Eclipse 中查看 std::map 的内容?

angular - 有没有办法修复 Angular CLI 生成的文件以停止在 WebStorm 中显示红色

jetbrains-ide - 在 JetBrains 的 IDE 中打印选择光标索引

git - WebStorm 注释在破折号和空格上切断用户名

.net - 我可以使用 VS2010 的 Intellitrace 收集 Windows 服务的数据吗?