如果Android Studio中发生未处理的异常,是否有办法设置断点?

发布于 2025-01-16 02:37:33 字数 85 浏览 4 评论 0原文

如果Android Studio中发生未处理的异常,是否有办法设置断点? 我希望调试器停止在导致异常的行处。我认为这是非常明显的,但我无法找到如何。 谢谢。

Is there someway to set a breakpoint if an unhandled exception occurs in Android Studio?
I want the debugger to stop at the line that causes the exception. I think this is very obvious but I am not able to find how.
Thanks.

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

回忆追雨的时光 2025-01-23 02:37:34

您可以查看 Run 或 Logcat,其中会显示有关错误类型和发生错误的行号的信息

You can look into Run or Logcat and there will be information on the type of error and the line number where the error occured

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文