2016-07-22 12 views

答えて

1

このアドビの記事では、それを、順を追って説明します:https://helpx.adobe.com/experience-manager/kb/CQ5HowToSetupRemoteDebuggingWithEclipse.html

ステップ1:リモートデバッグJVMパラメータ

To use remote debugging, you must start CQ5 with this JVM parameter: 
-agentlib:jdwp=transport=dt_socket,address=8000,server=y,suspend=n 

を追加するには、次の操作を実行して、パラメータを追加することができます。

Start your server like this: crx-quickstart/bin/start -d --debug-port 8000. The -d parameter adds the jvm parameter to the CQ5 java process. 
Add it to your crx-quickstart/bin/start script CQ_JVM_OPTS environment variable (so your server always starts in debug mode). 
Include it as a parameter when starting CQ5 with java -jar directly. For example, java -Xmx512m 

-agentlib:JDWP =交通= dt_socketという、アドレス= 8000、サーバー= Y、N = -jar CQ-著者4502.jar

ノート

If necessary, you can change the port defined under "...,address=8000,..." from 8000 to something that works better in 

ご使用の環境を一時停止。 CQ 5.5を起動すると、最後のソリューションを使用して、クイックスタートが新しいプロセスをフォークするときにデバッグオプションでJVMが開始されません。 -noforkコマンドラインオプションを指定すると、フォークを防止できます。 CQバージョンの テ起動スクリプトは、CRX-クイックスタートの下に位置しています/サーバー< 5.5

ステップ2:

Open Eclipse. 
Choose Run > Debug Configurations. 
Right-click Remote Java Applications and select New. 
Select your CQ5 project under Project. 
Type in the port from the "address" configuration of the jvm parameter defined above. In the example, it is port 8000 (and the host 

は、Eclipseからリモートデバッグセッションを開始するには、リモートデバッグセッションを開始し、次の手順を実行します

接続するマシンの名前、おそらくローカルホスト デバッグセッションを開始するには、[デバッグコンフィグレーション]画面で新しいコンフィグレーションをダブルクリックします。

対象:CQ 5.xおよびAdobe Experience Manager 6.x

関連する問題