Intellij Debugger slow: Method breakpoints may dramatically slow down debugging

前端 未结 6 1189
你的背包
你的背包 2020-12-13 03:21

When I start intellij debugger, it comes the the hint you can see in the screenshot. the debugger takes a lot of time to start. How to solve this problem?

6条回答
  •  北海茫月
    2020-12-13 03:45

    From the JetBrains Team: "Method breakpoints will slow down debugger a lot because of the JVM design, they are expensive to evaluate. Remove method breakpoints and consider using the regular line breakpoints.". See more.

    To make the long story short, it seems that the root issue is that Method Breakpoints are implemented by using JPDA's Method Entry & Method Exit feature. This implementation requires the JVM to fire an event each time any thread enters any method and when any thread exits any method.

提交回复
热议问题