It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Eclipse code out of sync during remote debugging of Jira plugins

Fabian Gautschi Sep 04, 2015

Hi

I ran into a weird issue. I have set up the remote debug target in Eclipse (Mars) according to the instructions of the developer.atlassian tutorial. Now, when I start remote debugging, it successfully connects to my local JIRA distribution. However, when I want to debug through my Java code, i.e. step over, the debugger seems to execute another code than visible in the code editor. It skips lines which I am sure they have to be executed, it stops at comments and so on. Somehow the code being executed is out of sync with the server. Cleaning, refreshing and rebuilding does not solve the problem.

Steps to reproduce:

  1. Run the atlas-debug command
  2. Navigate to local JIRA distribution in web browser
  3. Wait until page is fully loaded
  4. Start remote debugger in Eclipse
  5. Set breakpoint(s) in Eclipse
  6. Go to Plugin page, i.e. Servlet plugin
  7. Try to step over/step into --> Debugger jumps randomly around

Help would be much appreciated

Fabian

3 answers

1 accepted

0 votes
Answer accepted
Fabian Gautschi Sep 07, 2015

Hi Tomasz Thanks for your reply. There problem was a different one: By default, the remote debugger in eclipse that I had to configure hat a wrong souce look up path configured in the Source tab. Cheers

1 vote
Tomasz Stec Sep 04, 2015

Hi,
Firstly, make sure the code you are looking at in eclipse is exacltly the same taken for compilation during atlas-debug. I recomend:

  1. save all files in eclipse,
  2. stop JIRA,
  3. execute atlas-clean
  4. and again start it using atlas-debug.

Secondly, i am not an expert but i would check if your eclipse Mars and JIRA (atlas-debug) is using the same version of JVM. For instance you could pass an extra parameter in options.ini file of your Mars such:

-vm
C:/Program Files/Java/jdk1.8.XXX/bin

but your system environment Path variable points to a different (i.e older) one:
Path=C:/Program Files/Java/jdk1.7.XXX/bin
Then you might suffer behviour you described.

Cheers

1 vote
Volodymyr Krupach Sep 04, 2015

Did you run atlas-mvn eclipse:eclipse?

Fabian Gautschi Sep 07, 2015

Thanks for your reply, see my resolution above

Suggest an answer

Log in or Sign up to answer
This widget could not be displayed.
This widget could not be displayed.
Community showcase
Posted in Off-topic

Disney Live Action Reboots: Are you for or against?

Happy Friday Everyone! Today marks the international release of Disney's live action version of the animated classic Aladdin. I know that this movie was met with some controversy of over cast...

67 views 10 5
Join discussion

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you