Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Debugging your Tipper

tomerdragucki edited this page May 4, 2017 · 4 revisions

After completing your cool new Tipper, you ask yourselves how to test it. As you know we are working in a TDD methodology, so running your pre-written tests would be a good idea.

But it is sometimes easier to check your newly created Tipper in a real environment, i.e. as part of the plugin run by eclipse. That way you can:

  • Quickly check test cases, that later can be added as tests.
  • Test the Tipper from the user perspective (what markers it creates, etc.).
  • Challenge your Tipper with big , real world projects.
  • And more!

So how does eclipse allow us to debug our plugin? It opens a new eclipse window, in which the updated plugin (with your Tipper applied), is already installed.

Use our published launch configurations:

  • In the Package Explorer, open SpartanizerPlugin folder
  • Right click Eclipse Application.launch, then choose Run as...->Eclipse Application
  • In addition you can run all of the project's unit tests by doing the same for SpartanizerPluginAllTests.launch

From now on you can access the Run as eclipse application via:

  • Right click on the project, then choosing Run as...->Eclipse Application
  • Run->Run History->Eclipse Application
  • The play button, if it was your last run

Configurations instructions: (In case you want to set your own launch configuration)

  • In the eclipse top menu, go to Run->Run configurations...
  • Enter Eclipse Application->Eclipse Application
  • Choose run an application
  • Press Run button at the bottom of the configuration window
  • A new eclipse window should be open after a few seconds

Publish a launch configuration:

  • In case you want the rest of the project's developers to be able to use the launch configuration you created.
  • After entering Run configurations... and setting your launch configuration, and before pressing the Run button, go to Common tab.
  • Press Shared file: and choose the location in which you want the .launch file to be saved in.
  • Press Apply
  • Now any of the project developers can use this launch configuration, just how explained above for Eclipse Application.launch.

Note:

  • Any printing you done in your code will appear in the console of the original eclipse window, so you can print-debug if you like to.
Clone this wiki locally
Morty Proxy This is a proxified and sanitized view of the page, visit original site.