如何使用Debbuger添加监视表达式功能在Eclipse中监视NullPointerEx? [英] How to watch for NullPointerEx in Eclipse using Debbuger Add Watch Expression feature?

查看:42
本文介绍了如何使用Debbuger添加监视表达式功能在Eclipse中监视NullPointerEx?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我该如何使用Eclipse的添加监视表达式来监视我的应用程序可以抛出的任何 NullPointerException ?

Hi how can I use that Add Watch Expression of eclipse to watch for any NullPointerExceptions that my application can throw ?

我看到Guy曾经向该功能添加一些代码,并且他使Eclipse调试器在NullpointerEx诞生时停止运行.

I saw a Guy once adding some code into that feature and with that he made eclipse debugger to stop when any NullpointerEx was "born".

我想学习如何做.

推荐答案

您不使用监视表达式".转到断点"视图,并为 NullPointerException 添加一个异常断点.

You don't use 'watch expression'. Go to the "breakpoints" view and add an exception breakpoint for NullPointerException.

这篇关于如何使用Debbuger添加监视表达式功能在Eclipse中监视NullPointerEx?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆