# Debugging Gateway Module

**URL:** <https://forum.inductiveautomation.com/t/debugging-gateway-module/9014>\
**Category:** Module Development\
**Created:** [September 5, 2014, 7:39pm UTC](https://forum.inductiveautomation.com/t/debugging-gateway-module/9014 "2014-09-05T19:39:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bdev](https://avatars.discourse-cdn.com/v4/letter/b/d6d6ee/32.png) [@bdev](https://forum.inductiveautomation.com/u/bdev)\
**Post date:** [September 5, 2014, 7:39pm UTC](https://forum.inductiveautomation.com/t/debugging-gateway-module/9014/1 "2014-09-05T19:39:39Z")

</div>

I’m looking for some help getting module debugging to work.

Problem:  
I want to debug my gateway module code in Eclipse.  
NOTE: The same outcomes occur when I attempt to debug the sample Ignition gateway modules provided with the SDK.

Outcomes:  
The first time I run the debug configuration, nothing happens (even if I put breakpoints in the code). If I run the debug configuration again, I get a “Failed to connect to remote VM. Connection refused. Connection refused: connect” error.

What I’ve done:

1. I uncommented the two lines as per the Programmer’s Guide to enable debugging and I created the debug configuration.
2. I ran netstat to make sure port 8000 is available and listening.
3. I tried adding incoming and outgoing firewall rules to allow all communications on port 8000 and stopping the firewall.
4. I tried using JDK 7 and JDK 8.
5. I stopped IIS (just in case for some reason that was conflicting…).
6. I tried using a different port (port 8001).

Diagnostics:

1. Checking wrapper.log, there are a lot of “com.jniwrapper.win32.com.ComException: COM object method returns error code: 0x80040154; REGDB\_E\_CLASSNOTREG (Class not registered)” errors, which I’m guessing is related to OPC and not the debugging functionality. There were a few “oejw.StandardDescriptorProcessor:WrapperSimpleAppMain: NO JSP Support for /main, did not find org.apache.jasper.servlet.JspServlet” messages in wrapper.log, but these do not seem to occur regularly and actually haven’t happened for awhile.

Please help! Any suggestions?

---

<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:** [September 5, 2014, 8:17pm UTC](https://forum.inductiveautomation.com/t/debugging-gateway-module/9014/2 "2014-09-05T20:17:03Z")

</div>

Are you trying to debug a gateway on the same machine you’re running Eclipse on or a remote one? Did you restart Ignition after uncommenting the remote debugging lines?

---

<div class="post-metadata">

**Author:** ![bdev](https://avatars.discourse-cdn.com/v4/letter/b/d6d6ee/32.png) [@bdev](https://forum.inductiveautomation.com/u/bdev)\
**Post date:** [September 8, 2014, 1:22pm UTC](https://forum.inductiveautomation.com/t/debugging-gateway-module/9014/3 "2014-09-08T13:22:37Z")

</div>

I’m trying to debug an Ignition gateway on the same machine that Eclipse is running on. I restarted Ignition and even the entire machine.
