# Setup Remote debugging with IntelliJ

**URL:** <https://forum.inductiveautomation.com/t/setup-remote-debugging-with-intellij/57245>\
**Category:** Module Development\
**Tags:** ignition81\
**Created:** [March 16, 2022, 4:26am UTC](https://forum.inductiveautomation.com/t/setup-remote-debugging-with-intellij/57245 "2022-03-16T04:26:44Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rahul\_k](https://avatars.discourse-cdn.com/v4/letter/r/b9e5f3/32.png) [@Rahul\_k](https://forum.inductiveautomation.com/u/Rahul_k)\
**Post date:** [March 16, 2022, 4:26am UTC](https://forum.inductiveautomation.com/t/setup-remote-debugging-with-intellij/57245/1 "2022-03-16T04:26:44Z")

</div>

Hi Team,

## Background

* * *

I have pulled Ignition8 docker image and gateway application is running on port 9088.  
I am able to access Ignition application on localhost:9088  
Docker image : [inductiveautomation/ignition - Docker Image](https://hub.docker.com/r/inductiveautomation/ignition)

Now I want to setup Remote debugging profile to test a Driver module(OPC XML DA in my case).

Followed steps from here [https://docs.inductiveautomation.com/display/SE/Debugging+in+IntelliJ](https://docs.inductiveautomation.com/display/SE/Debugging+in+IntelliJ).

**ignition.conf**

> wrapper.java.additional.2=-Xdebug  
> wrapper.java.additional.3=-Xrunjdwp:transport=dt\_socket,server=y,suspend=n,address=\*:8000

**IntelliJ Remote debug command line arguments**

> -agentlib:jdwp=transport=dt\_socket,server=y,suspend=n,address=\*:8000  
> Host : localhost  
> Port : 8000

* * *

## Issue

When tried run in debug mode getting below error in IntelliJ

> Error running 'Remote debug': Unable to open debugger port (localhost:8000): java.net.ConnectException "Connection ref

I'm missing some context here.

Can someone help me to resolve this issue and share any doc with all detailed steps to setup Remote debug in IntelliJ.

---

<div class="post-metadata">

**Author:** ![Kevin.Collins](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.collins/32/13497_2.png) [@Kevin.Collins](https://forum.inductiveautomation.com/u/Kevin.Collins)\
**Post date:** [March 28, 2022, 3:06pm UTC](https://forum.inductiveautomation.com/t/setup-remote-debugging-with-intellij/57245/2 "2022-03-28T15:06:46Z")

</div>

You should be able to directly enable (without editing of the `ignition.conf` file) debug mode by using the `-d` flag of [runtime arguments](https://docs.inductiveautomation.com/display/DOC81/Docker+Image#DockerImage-RuntimeArguments) of the container. You’ll also want to probably publish port 8000, e.g.

```nohighlight
docker run -p 9088:8088 -p 8000:8000 \
  -v your-vol-name:/usr/local/bin/ignition/data \
  inductiveautomation/ignition:8.1.15 \
  -d

```

Note: you can replace the backslashes `\` with backticks ` ` ` for multi-line separators if you’re on Powershell on Windows.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [March 28, 2022, 3:14pm UTC](https://forum.inductiveautomation.com/t/setup-remote-debugging-with-intellij/57245/3 "2022-03-28T15:14:56Z")

</div>

> [@Kevin.Collins](#):
>
> Note: you can replace the backslashes `\` with backticks ` ` ` for multi-line separators if you’re on Powershell on Windows.

But you shouldn't go along with Microsoft's efforts to Embrace-Extend-Extinguish. ):

---

<div class="post-metadata">

**Author:** ![Rahul\_k](https://avatars.discourse-cdn.com/v4/letter/r/b9e5f3/32.png) [@Rahul\_k](https://forum.inductiveautomation.com/u/Rahul_k)\
**Post date:** [March 29, 2022, 7:46am UTC](https://forum.inductiveautomation.com/t/setup-remote-debugging-with-intellij/57245/4 "2022-03-29T07:46:14Z")

</div>

I was able to resolve the issue.

```auto
docker run -d -p 9088:8088 -p 8000:8000 --name ignition-test inductiveautomation/ignition:8.1.13 -n docker-test -a localhost -h 9088 -s 9043

```

Thanks for the help.
