Flutter在出错时打开内部文件而不在调试控制台中显示错误。

huangapple go评论76阅读模式
英文:

flutter on error opens a internal file rather than showing error in debug console

问题

当我的应用程序运行时,会发生错误,但不是在调试控制台中显示错误,而是打开一个文件并突出显示error_patch.dart文件中的一行。这已经多次发生在其他文件或错误上。Flutter是否不像应该的那样在调试控制台中显示错误!还是我漏掉了什么!

英文:

when my app runs an error occurs, but instead of showing error in debug console it opens a file and highlights a line from the error_patch.dart file. This have happen multiple times with some other file or error. Does flutter not show error in debug console like it should! or am I missing something!

Flutter在出错时打开内部文件而不在调试控制台中显示错误。

答案1

得分: 1

我经常遇到这个问题。您可以尝试以下3种情况:

  • 在终端选项卡中运行 "flutter run",而不是按下 F5 键,现在 VSCode 会报错并且不会进入所有不必要的文件。
  • 尝试按下第一个播放按钮 ||> 直到它停止 Flutter在出错时打开内部文件而不在调试控制台中显示错误。
  • 按下 Ctrl + F5(无调试运行),
英文:

I often meet this problem. You could do this 3 cases:

  • Run in terminal tab "flutter run" instead of press F5, now VSCode gives you error and not take to through all unnecessary files.
  • Try to press first play button ||> until it stops Flutter在出错时打开内部文件而不在调试控制台中显示错误。
  • Press Ctrl + F5 (Run without debugging),

huangapple
  • 本文由 发表于 2023年5月22日 22:36:50
  • 转载请务必保留本文链接:https://go.coder-hub.com/76307292.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定