john lilley created NETBEANS-2292:
-------------------------------------

             Summary: In debugger, step over compute-intensive line takes 
"forever", but running to breakpoint is fast
                 Key: NETBEANS-2292
                 URL: https://issues.apache.org/jira/browse/NETBEANS-2292
             Project: NetBeans
          Issue Type: Bug
          Components: debugger - Java
    Affects Versions: 8.2
         Environment: Windows 10 pro, Oracle JDK 1.8.0_144
            Reporter: john lilley


Given this code:

{{import java.security.KeyPair;}}
{{import java.security.KeyPairGenerator;}}
{{public class Scratch {}}
{{ public static void main(String[] args) throws Exception {}}
{{   KeyPairGenerator rsaKpGen = KeyPairGenerator.getInstance("RSA");}}
{{   rsaKpGen.initialize(4096);}}
{{   KeyPair kp = rsaKpGen.generateKeyPair();}}
{{   int x = 1;}}
{{ }}}}

If I set a breakpoint on the first line of main, then step through one line at 
a time, it will take "forever" to step over the generateKeyPair(). If I pause 
the debugger, it is in deep in BigInteger.probablePrime().  However, if I set a 
breakpoint at x=1 and start debugging, it will get there in a few seconds.

There are no other breakpoints set.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to