title: Setting breakpoints in .class files Intellij
body: <p>I'm trying to debug the code mentioned in <a href="https://stackoverflow.com/questions/33595692/java-keystore-fails-to-store-certificate-chains">this</a> question, more specifically, the last line in the following code:</p>
  
  <pre><code>        // client credentials
          KeyStore keyStore = null;
  
          keyStore = KeyStore.getInstance("PKCS12", "BC");
          keyStore.load(null, null);
          keyStore.setKeyEntry(CryptographyUtils.CLIENT_NAME, endCredential.getPrivateKey(), CryptographyUtils.CLIENT_PASSWORD,
                  new Certificate[]{endCredential.getCertificate(), interCredential.getCertificate(), rootCredential.getCertificate()});
          keyStore.store(new FileOutputStream(CryptographyUtils.CLIENT_NAME + ".p12"), CryptographyUtils.CLIENT_PASSWORD);
  </code></pre>
  
  <p>Going to the declaration of <strong>.store()</strong> (using Ctrl + B) opens a file <strong>KeyStore.java</strong>:</p>
  
  <pre><code>public final void store(OutputStream stream, char[] password)
          throws KeyStoreException, IOException, NoSuchAlgorithmException,
              CertificateException
      {
          if (!initialized) {
              throw new KeyStoreException("Uninitialized keystore");
          }
          keyStoreSpi.engineStore(stream, password);
      }
  </code></pre>
  
  <p>The last call <strong>.engineStore()</strong> actually writes the certificates to an output stream. Going to the implementation of the method (Ctrl + Alt + B) the following options are shown:</p>
  
  <p><a href="https://i.stack.imgur.com/dOvFM.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dOvFM.png" alt="store keys"></a></p>
  
  <p>The package imported containing the method in my code is from:</p>
  
  <pre><code>import java.security.KeyStore;
  </code></pre>
  
  <p>I have put a breakpoint in <strong>KeyStore.java</strong> and it is reached. However, breakpoints placed in decompiled .class files such as those shown in the picture are not. </p>
  
  <p>How may I debug the <strong>.engineStore()</strong> method?</p>