为什么在VScode中不可重复绘制?

发布于 2025-02-01 00:37:26 字数 567 浏览 2 评论 0原文

我有一个从命令行或Xcode运行时崩溃的弹奏应用程序,但是在通过VSCODE调试时工作正常。它完全可再现,发生在同一物理设备上。我唯一需要跟踪错误的工具是Raygun,尽管Raygun检测并记录了例外,但调试时不会发生异常。

我可以使用VSCODE进行调试,设置异常,打破所有/未接收的异常等。发生的事情是,当我使用VSCODE调试应用程序时,应用程序的行为更改足够多,以至于错误不出现。

如果我使用Xcode打开Runner Project并运行应用程序,则Xcode将花费大约5分钟的编译,将其运行在设备上,然后我看到问题。

如果我使用命令行flutter运行 - device-id 00008101-xxxxxxxmmyDeviceIdheyherexxxxxxx-debug,然后flutter花费大约2分钟(再次)运行,然后在我的设备上运行,然后再次 - 我看到 - 我看到 - 我看到问题。

如果我切换到VSCODE并启动了调试应用程序,则VSCODE将花费2分钟(再次),将其运行在我的设备上,并且该错误不会出现。

这表明VSCODE扑动编译过程正在做一些不同的事情。

I have a Flutter application which crashes when run from the command line or from XCode, but works fine when debugging via VSCode. It is entirely reproducable, happens on the same physical device. The only tool that I have to track errors is Raygun, and while Raygun detects and logs the exception, the exception does not occur when debugging.

I can use VSCode to debug, set exceptions, break on all/uncaught exceptions etc. What is happening is that when I use VSCode to debug the application, the behaviour of the app changes enough that the bug does not appear.

If I use XCode to open the Runner project and run the app, XCode spends approx 5 minutes compiling, runs it on my device, and then I see the problem.

If I use the command line flutter run --device-id 00008101-XXXXMYDEVICEIDHEREXXX --debug, then flutter spends approx 2 minutes compiling (again), runs it on my device, and then again - I see the problem.

If I switch to VSCode and launch the debug application, VSCode spends 2 minutes compiling (yet again), runs it on my device, and the bug does not appear.

This suggests that the VSCode flutter compile process is doing something different.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文