"打破例外"在Eclipse / Android的QUOT、Eclipse、Android

2023-09-06 01:50:47 作者:我姓吴可有可无、

我主要是C#/ VS开发,但将进行调试,在不久的将来,一个Android应用程序。我似乎无法找到在Eclipse中,这将导致在发生异常时(无论是否有异常处理程序处理它),它进入调试器的设置。

I'm primarily a C#/VS dev, but will be debugging an Android application in the near future. I can't seem to find a setting in eclipse that will cause it to break into the debugger when an exception occurs (regardless of whether there is an exception handler handling it).

该功能通过调试>例外菜单是在Visual Studio中可用。

This feature is available in visual studio via the Debug > Exceptions menu.

有什么在日食相似?否则,如何做一个数字一个异常假设的codeBase的限制初步知识的来源?

Is there anything similar in eclipse? otherwise, how does one figure out the source of an exception assuming limited initial knowledge of the codebase?

推荐答案

我不知道这是否也适用于Android的调试,但该功能可用于Java。在Eclipse中,切换到调试的观点。在断点视图中,你会发现一个小图标(在右上角,靠近视图的最小化按钮)与J和感叹号。这是触发加异常断点。

I don't know whether this also applies to Android debugging, but the feature is available for Java. In Eclipse, switch to the "debug" perspective. In the "Breakpoint" view, you will notice a little icon (at the top right, near the "minimize" button of the view) with a J and an exclamation point. This is the trigger to add "exception" breakpoints.

通过这个对话框,你可以告诉调试器暂停和捕获和未捕获异常的一致好评。

With this dialog, you can tell the debugger to suspend and caught and uncaught exceptions alike.