2012-03-15 7 views

答えて

2

あなたのPOMにこれを追加します。

は、アドレスの輸送dt_socketというのリスニング:8000

Eclipse help how to configure the IDEを参照してください。次の行が印刷されたときに

<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でデバッグを有効にすることができます。

はちょうどあなたのMavenのコマンドラインに-DdebugPort=8000を追加して、リモートデバッグセッションを添付:

関連する問題