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 Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,003 views 12 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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot