Eclipse 调试过滤不需要的包

Red*_*ddy 5 java eclipse debugging filtering breakpoints

我已经使用 Eclipse 进行开发 2 年了,但是在调试过程中我仍然很难理解这个过滤器概念。

我通常在远程端口模式下调试。

大多数时候,My Eclipse 会捕获不需要的包中的断点/异常 [包通常来自 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.

RAS*_*RAS 1

我认为这应该对你有帮助:

Window --> Preferences --> Java --> Debug
Run Code Online (Sandbox Code Playgroud)

取消选中以下各项:

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

单击Apply&,然后单击OK