如何在Eclipse中使用条件断点? [英] How to use conditional breakpoint in Eclipse?

查看:137
本文介绍了如何在Eclipse中使用条件断点?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道如何在Eclipse中放置条件断点。我有一个代码:

I want to know how to place a conditional breakpoint in Eclipse. I have a code like:

public static void doForAllTabs(String[] tablist){
    for(int i = 0; i<tablist.length;i++){
-->        doIt(tablist[i]);
    }
}

现在我想把一个断点放在一起箭头,但希望仅在以下情况下触发:

Now I want to put a breakpoint on the line with the arrow but want it to trigger only if:

tablist[i].equalsIgnoreCase("LEADDELEGATES");


推荐答案

把你的断点。
右键单击边距上的断点图像,然后选择断点属性

根据您的需要配置条件:

Configure condition as you see fit:

这篇关于如何在Eclipse中使用条件断点?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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