Why does the debugged program slow down so much when using method entry debugging?

The short answer is that execution runs through the interpreter when method entries are set. I don’t think there is anyway around this…

This used to be the case for all code running in debug mode but it was enhanced in 1.4… now HotSpot works for ‘full-speed’ debugging except in the case of method entries and exits, watchpoints and when single stepping or in methods that contain breakpoints.

Leave a Comment