简体   繁体   English

与目标 VM 断开连接

[英]Disconnected from the target VM

Sometimes when I press on the debug button in IntelliJ I receive the following and can't debug as a result.有时当我按下 IntelliJ 中的调试按钮时,我会收到以下信息,因此无法调试。 I wonder what could be wrong and how that can be fixed?我想知道可能出了什么问题以及如何解决?

/Library/Java/JavaVirtualMachines/jdk1.7.0_60.jdk/Contents/Home/bin/java -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:59089,suspend=y,server=n -Dfile.encoding=UTF-8 -classpath "/Library/Java/JavaVirtualMachines/jdk1.7.0_60.jdk/Contents/Home/lib/ant-javafx.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_60.jdk/Contents/Home/lib/dt.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_60.jdk/Contents/Home/lib/javafx-doclet.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_60.jdk/Contents/Home/lib/javafx-mx.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_60.jdk/Contents/Home/lib/jconsole.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_60.jdk/Contents/Home/lib/sa-jdi.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_60.jdk/Contents/Home/lib/tools.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_60.jdk/Contents/Home/jre/lib/charsets.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_60.jdk/Contents/Home/jre/lib/deploy.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_60.jdk/Contents/Home/jre/lib/htmlconverter.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_60.jdk/Contents/Home/jre/lib/javaws.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_60.jdk/Contents/Home/jre/lib/jce.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_60.jdk/Contents/Home/jre/lib/jfr.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_60.jdk/Contents/Home/jre/lib/jfxrt.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_60.jdk/Contents/Home/jre/lib/jsse.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_60.jdk/Contents/Home/jre/lib/management-agent.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_60.jdk/Contents/Home/jre/lib/plugin.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_60.jdk/Contents/Home/jre/lib/resources.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_60.jdk/Contents/Home/jre/lib/rt.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_60.jdk/Contents/Home/jre/lib/ext/dnsns.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_60.jdk/Contents/Home/jre/lib/ext/localedata.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_60.jdk/Contents/Home/jre/lib/ext/sunec.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_60.jdk/Contents/Home/jre/lib/ext/sunjce_provider.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_60.jdk/Contents/Home/jre/lib/ext/sunpkcs11.jar:/Library/Java/JavaVirtualMachines/jdk1.7.0_60.jdk/Contents/Home/jre/lib/ext/zipfs.jar:/Users/mona/IdeaProjects/testJ/out/production/testJ:/Applications/IntelliJ IDEA 14 CE.app/Contents/lib/idea_rt.jar" PeakElementLog
Connected to the target VM, address: '127.0.0.1:59089', transport: 'socket'
Disconnected from the target VM, address: '127.0.0.1:59089', transport: 'socket'

This is probably normal behavior.这可能是正常行为。 If you are experiencing an error such as an exception then you should also see a stack trace in there.如果您遇到诸如异常之类的错误,那么您还应该在其中看到堆栈跟踪。 If not, it is possible that you are catching and silently eating the exception.如果没有,您可能正在捕捉并默默地吃掉异常。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 与目标 VM 断开连接,地址:'127.0.0.1:51928',传输:'socket' - Disconnected from the target VM, address: '127.0.0.1:51928', transport: 'socket' JNI-在执行本机代码期间与目标VM断开连接 - JNI - Disconnected from the target VM, during the execution of native code (日食)Junit测试未从VM参数使用cacert证书-无法找到到请求目标的有效证书路径 - (eclipse) Junit test not using cacert certificate from VM arguments - unable to find valid certification path to requested target Netbeans Profiler:永远连接到目标虚拟机 - Netbeans Profiler: Connecting to the target vm forever TCP检测到与客户端断开连接的服务器 - TCP detect disconnected server from client 如何忽略来自断开连接通道的消息 - How to ignore messages from disconnected channel Java套接字与服务器端断开连接 - java socket disconnected from server side 休眠:目标VM中发生异常:无法延迟初始化集合 - Hibernate: Exception occurred in target VM: failed to lazily initialize a collection 使用 IntelliJ 调试 Java 进程 - 连接到套接字但不连接到目标 VM - Debugging Java process using IntelliJ - connects to socket but not to target VM 目标VM中发生异常:对于输入字符串:“ 1” java.lang.NumberFormatException - Exception occurred in target VM: For input string: “1” java.lang.NumberFormatException
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM