【问题标题】:Not able to debug ant script in eclipse无法在eclipse中调试ant脚本
【发布时间】:2012-01-24 11:51:34
【问题描述】:

当我尝试通过 Eclipse 调试 ant 脚本时,它会在调试点终止!!!!

这是错误日志的详细信息

消息:从 Ant 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

【问题讨论】:

    标签: eclipse debugging ant


    【解决方案1】:

    我通常通过从 Eclipse 外部运行 Ant 并远程连接来调试 Ant。我将我的 ANT_OPTS 设置为包含

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

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

    【讨论】:

      猜你喜欢
      • 2012-01-17
      • 2014-07-02
      • 2011-01-25
      • 2013-10-21
      • 2016-02-10
      • 2011-03-03
      • 2014-11-17
      • 2011-09-18
      • 1970-01-01
      相关资源
      最近更新 更多