How to properly setup an eclipse debug enviroment for jira plugins? Edited

We are upgrading jira from 6.4 to 7.4 and some of our custom made scripts stopped working because of new api calls. I want to setup an test environment in eclipse but with no success.


I've been struggling with connecting my eclipse environment to my local jira 7.2.2 instance.
This is what I've done so far.
First of all, I finished the HelloWorld plugin project and continued til Modify the plugin using QuickReload.

Now I have a small plugin that works in my jira instance, it is a custom drop down menu with one item in it.

After this I want to setup a debug environment in eclipse.

1. I run atlas-mvn eclipse:eclipse in my plugin folder.

2. Import my plugin to eclipse.

3. Create breakpoints in the code.

3. Run atlas-debug in my plugin folder.

4. In eclipse: Run -> Debug configurations -> new  Remote Java Application. Host: localhost Port:5005 then I press debug.

5. Going to debug perspective and it seems like I'm connected.

6. Going to my web page on localhost:2990/jira and I try functions in my Jira plugin to trigger the code.

 

Nothing happens... web page freezes and eclipse show nothing new.When I disconnect eclipse web page starts running again.

1 answer

This widget could not be displayed.

It seems that your brakepoints work (web freezing) but maybe you don't have debug perspective in Eclipse active?

It turned out the code I thought would run never ran.. It´s solved now.

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted yesterday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

54 views 1 0
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you