英文:
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!
答案1
得分: 1
我经常遇到这个问题。您可以尝试以下3种情况:
- 在终端选项卡中运行 "flutter run",而不是按下 F5 键,现在 VSCode 会报错并且不会进入所有不必要的文件。
- 尝试按下第一个播放按钮 ||> 直到它停止
- 按下 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
- Press Ctrl + F5 (Run without debugging),
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论