2011-12-20 73 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連接到指定的端口。