简体   繁体   English

在WebStorm中设置Dart断点

[英]Set Dart breakpoints in WebStorm

Dart code execution does not pause at breakpoints set in WebStorm IDE. Dart代码执行不会在WebStorm IDE中设置的断点处暂停。

The browser config points at a local Dartium install (/home/tom/dart/chromium/chrome-wrapper). 浏览器配置指向本地Dartium安装(/ home / tom / dart / chromium / chrome-wrapper)。

The Chrome extension has been installed. Chrome扩展程序已安装。

Clicking on "Debug index.html" in the IDE causes Dartium to be launched. 在IDE中单击“调试index.html”将启动Dartium。 "JetBrains IDE Support is debugging this tab" displays in Dartium. Dartium中显示“ JetBrains IDE支持正在调试此选项卡”。

Any hints as to where to look for a problem? 关于在哪里寻找问题的任何提示?

Edit: I think it's transpiling. 编辑:我认为这是转嫁。 Here's the log: 这是日志:

[web] GET /begin/index.html => polymer_and_dart|web/begin/index.html [web] GET /packages/web_components/dart_support.js => web_components|lib/dart_support.js [web] GET /packages/web_components/webcomponents.js => web_components|lib/webcomponents.js ... [web] GET /begin/index.html => polymer_and_dart | web / begin / index.html [web] GET /packages/web_components/dart_support.js => web_components | lib / dart_support.js [web] GET / packages / web_components /webcomponents.js => web_components | lib / webcomponents.js ...

There are 2 rather good articles on the topic: 关于该主题有2篇相当不错的文章:

https://medium.com/@kasperpeulen/debugging-dart-in-webstorm-c118c059cca3 https://medium.com/@kasperpeulen/debugging-dart-in-webstorm-part-2-673048da2a3f https://medium.com/@kasperpeulen/debugging-dart-in-webstorm-c118c059cca3 https://medium.com/@kasperpeulen/debugging-dart-in-webstorm-part-2-673048da2a3f

While I might not know why exactly you cannot debug your application, reading through these might give you the answer what Kasper (author of the articles) does to make it work. 虽然我可能不知道为什么您不能精确调试应用程序,但通读这些内容可能会为您提供答案(Kasper,文章的作者)如何使其正常工作。

Download fresh Dartium , set path to it in Settings (Preferences) | 下载新鲜的Dartium ,在“设置”(“首选项”)中设置其路径。 Languages and Frameworks | 语言和框架| Dart. 镖。 I'd recommend to update Dart SDK as well. 我建议也更新Dart SDK。 Check that run configuration for your html file is configured to start in Dartium (Run | Edit Configurations, for historical reasons its type is 'JavaScript Debug Run Configuration'). 检查html文件的运行配置是否已配置为在Dartium中启动(运行|编辑配置,由于历史原因,其类型为“ JavaScript调试运行配置”)。

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

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