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!

2 answers

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

To make sure you are able to debug JIRA you can use Java debugger aka jdb by executing:

jdb -attach localhost:8000

 As a result, you should see something like this:

brother@brother:~$ jdb -attach localhost:34347
Set uncaught java.lang.Throwable
Set deferred uncaught java.lang.Throwable
Initializing jdb ...
>

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Thursday in Jira

5 ways you can make the most of Jira Software and Bitbucket Cloud

As part of the Bitbucket product team I'm always interested in better understanding what kind of impact the use of our tools have on the way you work. In a recent study we conducted of software devel...

82 views 0 5
Read article

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