【问题标题】:How to step through only certain packages in IntelliJ debugger如何在 IntelliJ 调试器中仅单步执行某些包
【发布时间】:2022-01-26 07:36:02
【问题描述】:

我正在调试大量使用方法引用的实现。间接用于启用围绕模块执行的日志记录和错误处理方面。

使用调试器进入引用的方法很容易,但是退出回到调用站点很麻烦。如图所示,堆栈包含调用站点和正在执行的方法之间的许多代理类和方面

是否可以配置 step intostep out 函数来跳过不属于某个包的类?我知道可以在断点上使用类过滤器,但我需要熟悉的功能和步进函数。

【问题讨论】:

    标签: java debugging intellij-idea functional-programming


    【解决方案1】:

    在 Intellij Idea 中,Settings/Preferences | Build, Execution, Deployment | Debugger | Stepping 有很多调整。确保选中 Always do smart step into 选项。 Skip synthetic methods 选项可能是你需要的,你也可以配置跳过一些包。更多文档在这里https://www.jetbrains.com/help/idea/stepping-through-the-program.html#smart-step-into

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-11-15
      • 1970-01-01
      • 2015-03-09
      • 1970-01-01
      • 2010-12-07
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多