This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
The programs are running significant slower with debugger (Strg+F5) than in versions before 8.1 Example opening a complex JavaFX based window with database access (EclipseLink based) in Netbeans 8.1 = 20 sec, in Netbeans 8.0.2 = 3 sec and without debugger (F6) = 0.2 sec.
Martine, can you please evaluate this? Thanks!
It could be slow because of issue #241082, but that would be slow in 8.0.2 as well. Can you please go to: Tools -> Options -> Java -> Java Debugger -> Visual Debugging and un-check "Track locations of component hierarchy changes". Does this improve the performance? When you un-check also "Upload Visual Debugging agent to the target application", does that improve the performance even further?
In 8.0.2 both options are checked and it runs as described. If I uncheck "Track locations of component hierarchy changes" in 8.1 the debugger runs as fast as in 8.0.2. Checking or unchecking of "Upload Visual Debugging agent to the target application" does not change any performance.
After "Track locations of component hierarchy changes" is off by default (in issue #241082), both run and debug take sort of equal time for me. I've tested on a Brick Breaker sample application. I do not think that the database access should do much with the debugging performance. I'd be best if you could provide some sample application which we can use to reproduce the issue. Do you have many breakpoints set? Breakpoints are being submitted when the appropriate classes load, which pauses the application execution for a while. If you have many breakpoints, their submission can slow the application execution down.
Resolving as works for me, I do not see much difference between Run and Debug. It may take some time only to submit breakpoints and that depends on their number.