# Error Connecting To Designer From Debugger

**URL:** <https://forum.inductiveautomation.com/t/error-connecting-to-designer-from-debugger/94733>\
**Category:** Module Development\
**Created:** [August 16, 2024, 1:21am UTC](https://forum.inductiveautomation.com/t/error-connecting-to-designer-from-debugger/94733 "2024-08-16T01:21:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Max\_Smosarski](https://avatars.discourse-cdn.com/v4/letter/m/b77776/32.png) [@Max\_Smosarski](https://forum.inductiveautomation.com/u/Max_Smosarski)\
**Post date:** [August 16, 2024, 1:21am UTC](https://forum.inductiveautomation.com/t/error-connecting-to-designer-from-debugger/94733/1 "2024-08-16T01:21:48Z")

</div>

I'm experiencing an issue with remote debugging in Ignition Designer using IntelliJ IDEA. The debugger initially connects on port 8001 but disconnects almost immediately, typically within a second. The debug connection only remains open when the JVM argument includes 'suspend=y', but this causes the application to halt until a debugger connects. With 'suspend=n', the port appears to close after the initial loading phase.

Im getting these outputs when running netstat -ano | findstr :8001:

I'm using the following JVM argument for remote debugging:  
TCP 127.0.0.1:8001 127.0.0.1:53511 TIME\_WAIT 0  
TCP 0.0.0.0:8001 0.0.0.0:0 LISTENING 31272  
TCP [::]:8001 [::]:0 LISTENING 31272  
TCP 0.0.0.0:8001 0.0.0.0:0 LISTENING 31272  
TCP [::]:8001 [::]:0 LISTENING 31272  
TCP 0.0.0.0:8001 0.0.0.0:0 LISTENING 31272  
TCP [::]:8001 [::]:0 LISTENING 31272  
TCP 127.0.0.1:8001 127.0.0.1:53623 ESTABLISHED 31272  
TCP 127.0.0.1:53623 127.0.0.1:8001 ESTABLISHED 5444  
TCP 127.0.0.1:8001 127.0.0.1:53623 TIME\_WAIT 0  
TCP 127.0.0.1:8001 127.0.0.1:53623 TIME\_WAIT 0

These are the jvm arguments:  
-agentlib:jdwp=transport=dt\_socket,server=y,suspend=n,address=_:8001  
--Xrunjdwp:transport=dt\_socket,server=y,suspend=n,address=_:8001

The debugger log shows:

1. Successful initial connection:  
FINE - #c.i.d.e.DebugProcessImpl - \ ***VM attached**

2. Debugger enters RUNNING state:  
FINE - #c.i.d.i.DebuggerSession - DebuggerSession state = RUNNING, event = ATTACHED

3. Almost immediately after, the debugger detaches and disposes of the session:  
FINE - #c.i.d.i.DebuggerSession - DebuggerSession state = STOPPED, event = DETACHED  
FINE - #c.i.d.i.DebuggerSession - DebuggerSession state = DISPOSED, event = DISPOSE

Any insights or suggestions would be greatly appreciated. Thank you in advance for your help!

---

<div class="post-metadata">

**Author:** ![Kevin.Herron](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kevin.herron/32/7259_2.png) [@Kevin.Herron](https://forum.inductiveautomation.com/u/Kevin.Herron)\
**Post date:** [August 16, 2024, 2:06am UTC](https://forum.inductiveautomation.com/t/error-connecting-to-designer-from-debugger/94733/2 "2024-08-16T02:06:49Z")

</div>

What does your IntelliJ launch config and Designer Launcher config look like? Do you maybe have a firewall or AV software interfering?

I just gave this a quick try and had no issue getting the remote debugger attached.

Using

```python
-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005

```

---

<div class="post-metadata">

**Author:** ![Max\_Smosarski](https://avatars.discourse-cdn.com/v4/letter/m/b77776/32.png) [@Max\_Smosarski](https://forum.inductiveautomation.com/u/Max_Smosarski)\
**Post date:** [August 16, 2024, 2:46am UTC](https://forum.inductiveautomation.com/t/error-connecting-to-designer-from-debugger/94733/3 "2024-08-16T02:46:12Z")

</div>

weirdly enough after many hours of trying I simply reinstalled my designer and it seems to be working.

Thanks for the help anyway!
