How to force IntelliJ to only step into my source code?

后端 未结 5 1977
野性不改
野性不改 2021-01-30 08:05

I have a Spring MVC project that I\'m trying to debug using IntelliJ.

If I set a breakpoint in my Controller code, the debug stops at the appropriate place. That particu

5条回答
  •  遥遥无期
    2021-01-30 08:58

    Spring's AOP may be among the worst offenders.

    The OP suggested that they had already done this, but here's how you can disable stepping into specified classes (IntelliJ ULTIMATE 2018.2):

    File -> Settings... -> Build, Execution, Deployment -> Debugger -> Stepping

    ... Do not step into the classes -> Add Pattern -> Enter the filter pattern:

    ... ... org.springframework.aop.*

    Notice that you can use wildcards to disable entire namespaces -- so for example, assuming that your organization's namespace starts with com, you can get most of the way there by blacklisting org.*.

提交回复
热议问题