gpt4 book ai didi

dart - 如何调试使用异步的命令行 Dart 应用程序? (断点不起作用)

转载 作者:行者123 更新时间:2023-12-02 15:03:32 24 4
gpt4 key购买 nike

IntelliJ 或 Dart 编辑器中的调试器不会在此代码的断点处停止:

main() async {
var x = 1;
bool stop = true; // breakpoint here
}

...但是对于这段代码来说:

main() {
var x = 1;
bool stop = true; // breakpoint here
}

两个 IDE 上的 Dart SDK 1.8.3 和最新稳定版本。

最佳答案

这是一个已知问题,已在 dev channel 中修复,并将在 1.9 stable channel 中发布。请参阅Breakpoint set inside of async function does not trigger .

关于dart - 如何调试使用异步的命令行 Dart 应用程序? (断点不起作用),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27561678/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com