How To Remote Debug

1 follower
0
Avatar

I'm experimenting with Datameer's plugin SDK and I'm curious to know how to remote debug my plugging. Is there a particular port Jetty is configured for remote debug?

Saurabh Agashe

Official comment

  • Avatar
    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
    0

1 comment

Please sign in to leave a comment.