Eclipse调试筛选不需要的包
我已经使用Eclipse进行了2年的开发,但是这个filter概念我仍然在调试过程中难以理解。
我通常在远程端口模式下调试。
大多数时候,My Eclipse在不需要的软件包中捕获了断点/exception[软件包通常来自Spring,Java ThreadPool等其他来源。]并通过启动调试窗口来惹恼我。
I would like to configure Eclipse to catch breakpoints in my package only. Just ignore any where else, don't halt them or notify me.
我认为这应该对你有所帮助:
Window --> Preferences --> Java --> Debug
取消选中以下内容:
-
Suspend exceution on uncaught exceptions
-
Suspend exceution on compilation errors
-
Open popup when suspended on exception
单击Apply
然后OK
。
据我所知,我们可以为exception断点添加包filter,但对于正常的行断点,我认为一个接一个地手动禁用的方法很有效,
您可以查看Eclipse Creating Expression Filter以获取更多信息。
这个图提供了我们可以打开Java Exception Breakpoint的信息,