2011-12-20 78 views
0

当我尝试通过eclipse调试ant脚本时,它终止,因为它在调试点!!!!无法在eclipse中调试ant脚本

这里是错误日志的细节

消息:Error从蚂蚁UI记录: 异常堆栈跟踪:

java.net.SocketTimeoutException: Accept timed out 
at java.net.PlainSocketImpl.socketAccept(Native Method) 
at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:384) 
at java.net.ServerSocket.implAccept(ServerSocket.java:453) 
at java.net.ServerSocket.accept(ServerSocket.java:421) 
at org.eclipse.ant.internal.launching.launchConfigurations.RemoteAntBuildListener$ServerConnection.run(RemoteAntBuildListener.java:89) 

会话数据:

eclipse.buildId=M20110210-1200 
java.version=1.6.0_10 
java.vendor=Sun Microsystems Inc. 
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_GB 
Framework arguments: -product org.eclipse.epp.package.jee.product 
Command-line arguments: -os win32 -ws win32 -arch x86 -product org.eclipse.epp.package.jee.product 

回答

0

我通常通过运行调试蚂蚁它来自Eclipse的外部并远程连接。我把我的ANT_OPTS包括

-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=y 

然后我用Eclipse连接到指定的端口。