AnsweredAssumed Answered

Connect Plugin-Test Harness to Java IDE as Remote Server

Question asked by Roguen Keller Employee on Feb 24, 2017
Latest reply on Feb 27, 2017 by Roguen Keller


I'm struggling with connecting the Plugin-Test harness to my Java IDE (Eclipse) as a remote server.  The TEST_AND_DEBUG.txt instructions provide the following guidance:

4. Debugging with the plugin test harness

 

 

     In any Java debugger or IDE, first set breakpoints in your plugin Java class.

 

 

     Start the plugin test harness in debug mode:

        ./plugin-test -j <path-to-your-plugin-bundle-name>.jar -c <path-to-generated-config-file> -d

 

 

     Start the plugin test harness in debug mode for a specific plugin:

        ./plugin-test -j <path-to-your-plugin-bundle-name>.jar -c <path-to-generated-config-file> -p <plugin name> -d

 

 

     Connect your Java IDE to the plugin-test harness as a "Remote Server"

     at the specified port.

 

 

     Note: The default plugin-test debug port is 5903, which may be customized

           by specifying a DEBUG_PORT value in the plugin-test script.

 

 

     Plugin testing will begin automatically after the IDE connects. Any plugin

     breakpoints will be hit during the testing process, allowing for developers

     to step through plugin logic and analyze behavior.

But this of course does not speak to specifics for any IDE.

Here is what I have done after starting my debugger in the CLI with a -d flag for debugging.

Response was

Listening for transport dt_socket at address: 5903

 

I added my server view

Screen Shot 2017-02-24 at 9.34.25 PM.png

Created a new server

Screen Shot 2017-02-24 at 9.34.41 PM.png

Defined it as a generic HTTP server

Screen Shot 2017-02-24 at 9.35.07 PM.png

specified the port given in my

Screen Shot 2017-02-24 at 9.35.27 PM.png

and then specified the directory where plugin-test is running out of.

Screen Shot 2017-02-24 at 9.35.41 PM.png

I also put several breadboards into my connector plugin to try and catch it, but no luck.

So what piece to the puzzle am I missing in connecting these?

Outcomes