2012-03-15 92 views

回答

2

添加到您的POM:

<profiles> 
    <profile> 
     <id>debug</id> 

     <build> 
      <plugins> 
       <plugin> 
        <groupId>org.eclipse.tycho</groupId> 
        <artifactId>tycho-surefire-plugin</artifactId> 
        <version>${tycho-version}</version> 
        <configuration> 
         <argLine>-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=y</argLine> 
        </configuration> 
       </plugin> 
      </plugins> 
     </build> 
    </profile> 
</profiles> 

現在,您可以啓用調試與mvn ... -P debug當以下行打印:

在地址監聽運輸dt_socket:8000

Eclipse help how to configure the IDE