Intellij idea -Dkotlinx.coroutines.debug在IntelliJ IDEA JVM选项中不工作

Intellij idea -Dkotlinx.coroutines.debug在IntelliJ IDEA JVM选项中不工作,intellij-idea,kotlin,kotlinx.coroutines,Intellij Idea,Kotlin,Kotlinx.coroutines,我正在尝试Kotlin在Mac OS上使用IntelliJ IDEA的协同程序。在第节中,建议使用-Dkotlinx.coroutines.debugJVM选项来获取详细的日志输出。我打开了“帮助/编辑自定义VM选项…”,并在打开的idea.vmoptions文件中添加了-Dkotlinx.coroutines.debug行 idea.vmoptions编辑后的内容: # custom IntelliJ IDEA VM options -Xms128m -Xmx750m -XX:Res

我正在尝试Kotlin在Mac OS上使用IntelliJ IDEA的协同程序。在第节中,建议使用
-Dkotlinx.coroutines.debug
JVM选项来获取详细的日志输出。我打开了“帮助/编辑自定义VM选项…”,并在打开的idea.vmoptions文件中添加了
-Dkotlinx.coroutines.debug

idea.vmoptions编辑后的内容:

    # custom IntelliJ IDEA VM options

-Xms128m
-Xmx750m
-XX:ReservedCodeCacheSize=240m
-XX:+UseCompressedOops
-Dfile.encoding=UTF-8
-XX:+UseConcMarkSweepGC
-XX:SoftRefLRUPolicyMSPerMB=50
-ea
-Dsun.io.useCanonCaches=false
-Djava.net.preferIPv4Stack=true
-Djdk.http.auth.tunneling.disabledSchemes=""
-XX:+HeapDumpOnOutOfMemoryError
-XX:-OmitStackTraceInFastThrow
-Xverify:none

-XX:ErrorFile=$USER_HOME/java_error_in_idea_%p.log
-XX:HeapDumpPath=$USER_HOME/java_error_in_idea.hprof
-Dkotlinx.coroutines.debug
但再次运行代码后,输出为:

[main] I'm computing a piece of the answer
[main] I'm computing another piece of the answer
[main] The answer is 42

Process finished with exit code 0
[main @coroutine#2] I'm computing a piece of the answer
[main @coroutine#3] I'm computing another piece of the answer
[main @coroutine#1] The answer is 42
鉴于预期产出为:

[main] I'm computing a piece of the answer
[main] I'm computing another piece of the answer
[main] The answer is 42

Process finished with exit code 0
[main @coroutine#2] I'm computing a piece of the answer
[main @coroutine#3] I'm computing another piece of the answer
[main @coroutine#1] The answer is 42
这里缺少什么?

帮助>编辑自定义虚拟机选项。。。菜单选项允许您为IntelliJ本身的执行设置VM选项

要为自己的应用程序设置选项,需要编辑运行/调试配置。这些可以在运行>编辑配置下找到。。。在菜单上

选择此选项将打开以下窗口,可用于设置应用程序的VM选项:

小心,“=”之后没有多余的空间…确实像“-Dkotlinx.coroutines.debug=on”