简体   繁体   中英

IntelliJ doesn't show stacktrace

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). 截屏

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

在左侧的树视图中,选择根项目。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM