Debugging plugins uploaded as jars

shumway22
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 12, 2024

I have a plugin that was developed in eclipse, then a jar package was created, and then the jar uploaded to Jira over the manage plugins web interface. I would like to remotely debug that plugin. This included breakpoints, variables, and so on. Not just outputting errors to the log. I have installed the sdk and can run the atlas-debug command. It complains that it there is no pom. From what I understand it needs to be run from the plugin's directory, but there is only a jar on the server. 

Is it possible to remotely debug the .jar? Am I somehow supposed to convert the project to something that sits on the Jira server, so that I can run the atlas-debug command where the pom file is located? I am a bit lost. Any clarity would be much appreciated. 

1 answer

0 votes
Fabio Racobaldo _Herzum_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 18, 2024

Hi @shumway22 and welcome,

please take a look to the following how-to guide https://developer.atlassian.com/server/framework/atlassian-sdk/creating-a-remote-debug-target/

Keep in mind that you should start jira in debug mode so that you can connect remotely from your IDE.

Hope this helps,

Fabio

shumway22
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 18, 2024

Hello Fabio,

Thanks for the reply. Do you have a link for starting Jira in debug mode? We tried some of the things found in the forum, but they didn't really help. We are unfortunately under experienced in this matter.

 

Regards,

Shumway

Suggest an answer

Log in or Sign up to answer