IntelliJ 无法调试

IntelliJ can not debug

当(本地)尝试在 IntelliJ 2018.2.4 中通过 junit 测试进行调试时出现以下错误:

Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
Unrecognized option: -XXdebug

我认为有一个配置错误,它实际上应该是 -Xdebug 而不是 -XXdebug,但我在设置中找不到它。

.idea.intellij 文件夹中的 grep 也没有找到任何此类设置。

非常感谢任何帮助。

非常感谢

迈克尔

在你的idea.properties(通常位于IDEA安装目录)中,有一个名为idea.debug.key的属性,其值设置为-XXdebug。将其更改为 -Xdebug 一切正常。