title: IntelliJ doesn't show stacktrace
body: <p>I'm writing a Java app with Gradle in IntelliJ CE. I am trying to debug, but every time the code gives any exception, the only text in the console is:</p>
  
  <pre><code>Execution failed for task ':Main.main()'.
  &gt; Process 'command 'F:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2019/jbr/bin/java.exe'' finished with non-zero exit value 1
  </code></pre>
  
  <p>If I step through the code, I can see the exception in the console when it's thrown. But once the whole code execution ends, the exception disappears and I see only the message from above. (screenshot attached). <a href="https://i.stack.imgur.com/8Vpgd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/8Vpgd.png" alt="screenshot"></a></p>
  
  <p>Any idea how I can fix this problem and be able to see the error message?</p>