IntelliJ doesn't show stacktrace

Viewed 1440

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:

Execution failed for task ':Main.main()'.
> Process 'command 'F:/Program Files/JetBrains/IntelliJ IDEA Community Edition 2019/jbr/bin/java.exe'' finished with non-zero exit value 1

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). screenshot

Any idea how I can fix this problem and be able to see the error message?

1 Answers

In that tree view on the left, select the root item.

Related