How To Remote Debug

Comments

1 comment

  • Official comment
    Saurabh Agashe

    This setup assumes you have already created a development environment outlined in the documentation: Development Environment.

    The following steps will enable remote debugging.

    • Shutdown development server. <DAS_HOME>/bin/conductor.sh stop
    • Edit <DAS_HOME>/etc/das-env.sh and add export JAVA_OPTIONS="$JAVA_OPTIONS -Xdebug -Xrunjdwp:transport=dt_socket,address=8585,server=y,suspend=n" to the end of the file. In this example we're using port 8585.

    • Startup development server. <DAS_HOME>/bin/conductor.sh start
    • In Eclipse, navigate to Run -> Debug Configurations...
    • Select Remote Java Application , on the left column. Click New icon.

    • In the Create configuration screen you'll be prompted to enter some values. Enter a meaningful name for the Remote Java Application. For Project, select the target plugin project you want to debug. Change the host to your development machine. Change the port to the target port entered in step 2.

    • Click Apply
    • Click Debug
    Comment actions Permalink

Please sign in to leave a comment.