-
Notifications
You must be signed in to change notification settings - Fork 56
Debugging your Tipper
Ori Roth edited this page Apr 2, 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.
Configurations instructions:
- 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
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
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.