Eclipse Debugging Filter Unwanted Packages

China☆狼群 提交于 2019-12-22 08:17:13

问题


I have been using Eclipse for 2 years for development, but this filter concept I am still struggling to understand during debugging.

I usually debug in remote port mode.

Most of the times, My Eclipse catches the break point/exception in Unwanted Packages [Packages usually from other Sources like Spring, Java ThreadPool etc..] and annoys me by bringing up the debug window.

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.


回答1:


I think this should help you:

Window --> Preferences --> Java --> Debug

Uncheck the following:

  • Suspend exceution on uncaught exceptions
  • Suspend exceution on compilation errors
  • Open popup when suspended on exception

Click on Apply & then OK.




回答2:


As far as I know we can add package filters for exception breakpoints but for the normal line breakpoints, I think a long way to manually disable one by one will work,
You can look at Eclipse Creating Expression Filter for more information.
This figure provide info ho we can open Java Exception Breakpoint,



来源:https://stackoverflow.com/questions/20852254/eclipse-debugging-filter-unwanted-packages

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!