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
Community showcase
Posted Sep 25, 2018 in Jira

Atlassian Research Workshop opportunity on Sep. 28th in Austin, TX

We're looking for participants for a workshop at Atlassian! We need Jira admins who have interesting custom workflows, issue views, or boards. Think you have a story to sha...

431 views 7 5
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