改变日食中标记的优先级 [英] Changing the priority of markers in eclipse

查看:122
本文介绍了改变日食中标记的优先级的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我在已经有一个标记的行上设置一个断点(该变量的值不被使用)时,我看不到断点标记;因为黄色灯标记覆盖了断点标记。



是否可以更改标记的优先级,以便断点位于灯标记的顶部? / p>

解决方案

只要@Mena的回答是确定的,因为他... ...


使用您自己的风险:)


这在一个大项目中可能是危险的。






为避免出现隐藏警告的问题,我通常会做的是:




  • 离开配置,查看警告。

  • 删除所有真正不必要的行引起警告

  • 将注释添加到仍然有警告但需要同一行断点的方法。
    如果需要大量警告或断点,您可以注释类。

      @SuppressWarning 未使用)
    public void yourMethod(){
    }




这将允许您单独处理警告,并在必要时查看断点。


When I set a break point on a row which already has a marker(The value of the local variable is not used) on it, I cannot see the break point marker; because the yellow lamp marker covers the break point marker.

Is it possible to change the priority of the markers so that the break point sits on top of the lamp marker?

解决方案

As long as @Mena answer is ok, as he sais...

Use at your own risk :)

This can be dangerous in a big project.


To avoid problems with hided warnings due configurations, what I usually do is:

  • Leave config as is, to see warnings.
  • Remove all really unnecessary lines causing warnings
  • Add an annotation to method still having warnings but needing breakpoint at same line.
    You can annotate class if necessary when massive warnings or breakpoints needed.

    @SuppressWarning("unused") 
    public void yourMethod() {
    }
    

This will allow you to handle warnings individually and see breakpoints when necessary.

这篇关于改变日食中标记的优先级的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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