How to open remote debug ports for Windows JIRA standalone

Hi

I need to open debug ports for a standalone JIRA (installed without using atlassian-sdk)

I have tried adding JVM Arguments in my setenv.bat file like this:

set JVM_SUPPORT_RECOMMENDED_ARGS=-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=7456

But after starting JIRA and trying to debug from IntelIJ Idea I get a

 

java.net.ConnectException "Connection refused: connect

I can't open any of atlassian answers questions when I Goolge it, because today it was migrated to community.atlassian 

Thanks in advance!

1 answer

1 accepted

After some time and digging, I have figured out a way to do this.

  1. I have replaced line set DEBUG_OPTS= with set DEBUG_OPTS=-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8000 in my catalina.bat file located in JIRA installation directory
  2. To my setenv.bat file I have added a new JVM parameter, so now I have line:  set JVM_SUPPORT_RECOMMENDED_ARGS=-Xdebug

After configuring a Remote in IntelliJ idea I am, once again, a happy developer =) 

successful debug.png

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

523 views 1 18
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