title: Debug JAR intellij or command line
body: <p>Im using the following config the debug jar file that under my root project, when I click on debug the program start to run but doesnt stopes since I didn't set any break-point(as this is jar file :) ) , In node.js there is option to do it with <code>--inspect-brk</code> <a href="http://%20https://nodejs.org/api/debugger.html#debugger_v8_inspector_integration_for_node_js" rel="nofollow noreferrer">info</a> which stops on the first statement but not sure How to do it on jar file  </p>
  
  <p>My questions are</p>
  
  <blockquote>
    <ol>
    <li>How can I stops in the <strong>first line</strong> of the program jar ? </li>
    <li>Does my config are OK?</li>
    </ol>
  </blockquote>
  
  <p><a href="https://i.stack.imgur.com/3NZ8y.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3NZ8y.jpg" alt="enter image description here"></a></p>
  
  <p>Oterwise , how can you able to debug jar if you cannot set a break-point ...</p>
  
  <p>EDIT:</p>
  
  <p>I've tried with the suggestion of crazycoder and it's not working, any idea?</p>
  
  <p>What I tried is to create under my root project decomplie folder and run the following command</p>
  
  <pre><code> java -jar fernflower.jar zte.jar + decomplie/
  </code></pre>
  
  <p>I got erorr of course of not found</p>
  
  <p>I've also tried with </p>
  
  <pre><code>java -cp java-decompiler.jar org.jetbrains.java.decompiler.main.decompiler.ConsoleDecompiler zte.jar + decomplie/ 
  </code></pre>
  
  <blockquote>
    <p>Could not find or load main class
    org.jetbrains.java.decompiler.main.decompiler.ConsoleDecompiler</p>
  </blockquote>
  
  <p>How to I get this jar (fernflower.jar ) or the path to it ?</p>
  
  <p>EDIT2</p>
  
  <p>My project is like this</p>
  
  <pre><code>-myjavaproj
  
   --zte.jar
   --decomile
   ---zte.jar
   ---com.proj.cli
   ----appmain.java 
  </code></pre>