2

I'm using IntelliJ, and when I'm debbuging, if I put the breakpoint on the line of the signature of the method, and run the debugger, a warning pops up telling me:

Method breakpoint may dramatically slow down debugging

but if I put it on any line inside the method, it's fine. Why?

Bruno Gois
  • 80
  • 2
  • 11

1 Answers1

2

Design of JVM makes it expensive to evaluate when breakpoints are set on methods. To verify that you don't have any method breakpoints open .idea/workspace.xml file in the project root directory (or .iws file if you are using the old project format) and look for any breakpoints inside the method_breakpoints node. Refer here.

Rohit
  • 475
  • 4
  • 18
  • 2
    You're not really answering the question. – shmosel Jun 29 '17 at 20:21
  • I do realize it is expensive to evaluate when breakpoints are set on the signature of the method, but my question was more about the reason (inner workings) why the JVM works that way. – Bruno Gois Jun 29 '17 at 20:21