# Ignition 8 Designer Debugging not working

**URL:** <https://forum.inductiveautomation.com/t/ignition-8-designer-debugging-not-working/26192>\
**Category:** Module Development\
**Tags:** ignition80\
**Created:** [July 1, 2019, 2:27am UTC](https://forum.inductiveautomation.com/t/ignition-8-designer-debugging-not-working/26192 "2019-07-01T02:27:58Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![mpderbec](https://avatars.discourse-cdn.com/v4/letter/m/bbe5ce/32.png) [@mpderbec](https://forum.inductiveautomation.com/u/mpderbec)\
**Post date:** [July 1, 2019, 2:27am UTC](https://forum.inductiveautomation.com/t/ignition-8-designer-debugging-not-working/26192/1 "2019-07-01T02:27:58Z")

</div>

I’m trying to debug the Ignition 8 Designer in IntelliJ like I used to with Ignition 7. I re-followed the instructions at [https://docs.inductiveautomation.com/display/SE/Debugging+in+IntelliJ](https://docs.inductiveautomation.com/display/SE/Debugging+in+IntelliJ) but what I observe is that IntelliJ successfully launches the designer but it looks like a child process is spawned and the parent process exits, which causes IntelliJ to think everything’s over with.

The last few lines of the IntelliJ console are as follows:

```auto
Running: [C:\Users\mark_\.ignition\cache\resources\runtimes\11.0.3\bin\java.exe, -cp, C:\Users\mark_\.ignition\cache\launchclient_ADF54DE0.jar, -Dia.retarget.token=ADF54DE0, -Djavaws.sr.memory.init=64M, -Djavaws.sr.memory.max=256M, -Djavaws.sr.platform.edition=null, -Xms64M, -Xmx256M, com.inductiveautomation.ignition.client.launch.BootstrapSwing]
Launched JVM.
Disconnected from the target VM, address: '127.0.0.1:52871', transport: 'socket'

Process finished with exit code 0

```

---

<div class="post-metadata">

**Author:** ![jcoffman](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jcoffman/32/6429_2.png) [@jcoffman](https://forum.inductiveautomation.com/u/jcoffman)\
**Post date:** [July 1, 2019, 3:11pm UTC](https://forum.inductiveautomation.com/t/ignition-8-designer-debugging-not-working/26192/2 "2019-07-01T15:11:04Z")

</div>

This may be due to the way that we handle launching on the correct JVM downloaded from the gateway you are targeting. if you add the `-Djavaws.sr.runtimeOverride=true` argument when launching then the Designer will use whatever JDK you are targeting and not relaunch on the JRE grabbed from the gateway.

It should also be noted that you should be using some JDK 11+ version.

Thanks,  
Jonathan C

---

<div class="post-metadata">

**Author:** ![mpderbec](https://avatars.discourse-cdn.com/v4/letter/m/bbe5ce/32.png) [@mpderbec](https://forum.inductiveautomation.com/u/mpderbec)\
**Post date:** [July 1, 2019, 6:25pm UTC](https://forum.inductiveautomation.com/t/ignition-8-designer-debugging-not-working/26192/3 "2019-07-01T18:25:22Z")

</div>

Thanks @jcoffman, that got me a little farther. Now the problem I’m running into is that the console output is showing a version mismatch error in the logs, which I can’t explain. I’ve verified that the version of Ignition I’m running is the same as the Ignition SDK version (8.0.2). Any hints? Here’s the output from the IntelliJ console:

[ignition-designer.log](https://us1.discourse-cdn.com/inductiveautomation/original/2X/3/3bc414db7a74c7bb55c6732efa4e5ae27cff4060.log) (51.0 KB)

Last few lines:

```auto
Starting class: com.inductiveautomation.ignition.designer.DesignerStartupHook
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by de.javasoft.plaf.synthetica.SyntheticaLookAndFeel (file:/C:/Users/mark_/.m2/repository/de/javasoft/synthetica/3.1.1/synthetica-3.1.1.jar) to method sun.swing.DefaultLookup.setDefaultLookup(sun.swing.DefaultLookup)
WARNING: Please consider reporting this to the maintainers of de.javasoft.plaf.synthetica.SyntheticaLookAndFeel
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
11:18:14.460 [Thread-3] INFO com.inductiveautomation.ignition.client.gateway_interface.GatewayConnectionManager - Initializing gateway connection with URLs: [http://127.0.0.1:8088/main]
com.inductiveautomation.ignition.client.gateway_interface.GatewayException: Version mismatch
	at com.inductiveautomation.ignition.client.gateway_interface.GatewayInterface.newGatewayException(GatewayInterface.java:341)
	at com.inductiveautomation.ignition.client.gateway_interface.GatewayInterface.sendMessage(GatewayInterface.java:315)
	at com.inductiveautomation.ignition.client.gateway_interface.GatewayInterface.sendMessage(GatewayInterface.java:268)
	at com.inductiveautomation.ignition.client.gateway_interface.GatewayInterface.invoke(GatewayInterface.java:905)
	at com.inductiveautomation.ignition.designer.DesignerStartupHook.initI18N(DesignerStartupHook.java:342)
	at com.inductiveautomation.ignition.designer.DesignerStartupHook.startup(DesignerStartupHook.java:277)
	at com.inductiveautomation.ignition.client.launch.steps.StartupStep$Starter.run(StartupStep.java:126)
	at java.base/java.lang.Thread.run(Thread.java:834)

```

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [July 1, 2019, 7:13pm UTC](https://forum.inductiveautomation.com/t/ignition-8-designer-debugging-not-working/26192/4 "2019-07-01T19:13:51Z")

</div>

Try dropping the extra qualifiers from the gateway address; eg:  
`-Djavaws.sr.gateway.addr.0=127.0.01:8088:8043/main`  
down to:  
`-Djavaws.sr.gateway.addr.0=127.0.01:8088`

---

<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:** [July 1, 2019, 7:17pm UTC](https://forum.inductiveautomation.com/t/ignition-8-designer-debugging-not-working/26192/5 "2019-07-01T19:17:15Z")

</div>

Do you have this arg: `-Dscadarail.version=dev`?

---

<div class="post-metadata">

**Author:** ![mpderbec](https://avatars.discourse-cdn.com/v4/letter/m/bbe5ce/32.png) [@mpderbec](https://forum.inductiveautomation.com/u/mpderbec)\
**Post date:** [July 5, 2019, 6:45pm UTC](https://forum.inductiveautomation.com/t/ignition-8-designer-debugging-not-working/26192/6 "2019-07-05T18:45:03Z")

</div>

@paul-griffith I tried the modification you suggested, I still get the same error.

@Kevin.Herron I made sure that arg is present.

Any other ideas?

---

<div class="post-metadata">

**Author:** ![mpderbec](https://avatars.discourse-cdn.com/v4/letter/m/bbe5ce/32.png) [@mpderbec](https://forum.inductiveautomation.com/u/mpderbec)\
**Post date:** [July 5, 2019, 7:43pm UTC](https://forum.inductiveautomation.com/t/ignition-8-designer-debugging-not-working/26192/7 "2019-07-05T19:43:03Z")

</div>

I tried starting from “scratch” using the `gateway-network-function` project from the `ignition-sdk-examples` repo, and I was able to get a little farther but I can’t log in with the designer, I see this error in the debugger:

```auto
12:38:43.611 [Thread-3] INFO com.inductiveautomation.ignition.client.gateway_interface.GatewayConnectionManager - Initializing gateway connection with URLs: [http://127.0.01:8088/main]
12:38:43.746 [Thread-3] INFO com.inductiveautomation.ignition.client.util.gui.progress.ClientProgressManager - Progress manager started.
12:38:48.226 [AWT-EventQueue-0] ERROR com.inductiveautomation.ignition.designer.DesignerSplash - Login failed.
com.inductiveautomation.ignition.client.gateway_interface.GatewayException: Unable to read response from Gateway.

```

I think at this point it’s probably best that an Inductive Automation person confirm that they can run through the public instructions and get IntelliJ debugging working and update the knowledgebase / examples appropriately. We know for sure that the `-Djavaws.sr.runtimeOverride=true` is a new flag that must be added with Ignition 8.0.

---

<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:** [July 6, 2019, 5:56pm UTC](https://forum.inductiveautomation.com/t/ignition-8-designer-debugging-not-working/26192/8 "2019-07-06T17:56:29Z")

</div>

I just updated the [vision-component example](https://github.com/inductiveautomation/ignition-sdk-examples/tree/master/vision-component).

I was able to successfully launch a designer against an Ignition 8.0.2 gateway with the following configuration:

Main Class: `com.inductiveautomation.ignition.designer.DesignerStartupHook`

VM Options:

```auto
-Dignition.version=dev
-Dsr.gateway=localhost:8088/main
-DlibPath=/home/kevin/.ignition/cache/gwlocalhost_8088_main/C0/pylib

```

Use classpath of module: `designer-launcher`

---

<div class="post-metadata">

**Author:** ![mpderbec](https://avatars.discourse-cdn.com/v4/letter/m/bbe5ce/32.png) [@mpderbec](https://forum.inductiveautomation.com/u/mpderbec)\
**Post date:** [July 6, 2019, 8:29pm UTC](https://forum.inductiveautomation.com/t/ignition-8-designer-debugging-not-working/26192/9 "2019-07-06T20:29:32Z")

</div>

Thanks @Kevin.Herron, that gets me a little farther but I’m still stuck:

I can now get to the Open/Create Project dialog, but when I try to either open an existing project or create a new one, I get this error:

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/7/73d179eead766f25b117a035b0d9bae137761cee.png)

(I also get about 10 to 13 errors like `Hook class "com.inductiveautomation.symfact.designer.SymbolFactoryDesignerHook" not found for module "Symbol Factory"` but I’m able to ignore those to get to the Open/Create Project dialog.)

---

<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:** [July 6, 2019, 8:39pm UTC](https://forum.inductiveautomation.com/t/ignition-8-designer-debugging-not-working/26192/10 "2019-07-06T20:39:52Z")

</div>

That error should be solved by the `-DlibPath` line. Did you point that to a valid pylib folder on your machine?

---

<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:** [July 6, 2019, 8:55pm UTC](https://forum.inductiveautomation.com/t/ignition-8-designer-debugging-not-working/26192/11 "2019-07-06T20:55:18Z")

</div>

You might also just scrap this whole approach and launch a regular Designer via the Designer Launcher with additional arguments to enable remote debugging:

```auto
-Xdebug
-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=*:8000

```

and then attach via IntelliJ.

---

<div class="post-metadata">

**Author:** ![mpderbec](https://avatars.discourse-cdn.com/v4/letter/m/bbe5ce/32.png) [@mpderbec](https://forum.inductiveautomation.com/u/mpderbec)\
**Post date:** [July 6, 2019, 9:05pm UTC](https://forum.inductiveautomation.com/t/ignition-8-designer-debugging-not-working/26192/12 "2019-07-06T21:05:02Z")

</div>

Success! I just needed to make sure that libPath was correct. Now I need to figure out why my module isn’t being loaded, but that’s a separate problem.

---

<div class="post-metadata">

**Author:** ![mpderbec](https://avatars.discourse-cdn.com/v4/letter/m/bbe5ce/32.png) [@mpderbec](https://forum.inductiveautomation.com/u/mpderbec)\
**Post date:** [July 6, 2019, 9:06pm UTC](https://forum.inductiveautomation.com/t/ignition-8-designer-debugging-not-working/26192/13 "2019-07-06T21:06:05Z")

</div>

I tried using the Designer Launcher approach you suggested but I can’t seem to specify the arguments correctly. I put them on separate lines, but I get the following error. The text entry box doesn’t allow me to insert a space anywhere so I’m not sure what else to do.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/c/cead2c38bf9cbcf504b697b9fa9abe8ea8719942.png)

---

<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:** [July 6, 2019, 9:14pm UTC](https://forum.inductiveautomation.com/t/ignition-8-designer-debugging-not-working/26192/14 "2019-07-06T21:14:25Z")

</div>

Try getting rid of `-Xdebug` and just using the other line.

I think the launcher’s handling of multiple arguments in that text area is broken.

---

<div class="post-metadata">

**Author:** ![mpderbec](https://avatars.discourse-cdn.com/v4/letter/m/bbe5ce/32.png) [@mpderbec](https://forum.inductiveautomation.com/u/mpderbec)\
**Post date:** [July 6, 2019, 9:22pm UTC](https://forum.inductiveautomation.com/t/ignition-8-designer-debugging-not-working/26192/15 "2019-07-06T21:22:15Z")

</div>

No luck:

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/6/6b86b78da78e34e9bbdf13093e2b7dea410466a0.png)

---

<div class="post-metadata">

**Author:** ![mpderbec](https://avatars.discourse-cdn.com/v4/letter/m/bbe5ce/32.png) [@mpderbec](https://forum.inductiveautomation.com/u/mpderbec)\
**Post date:** [July 6, 2019, 9:35pm UTC](https://forum.inductiveautomation.com/t/ignition-8-designer-debugging-not-working/26192/16 "2019-07-06T21:35:33Z")

</div>

@Kevin.Herron my next hurdle is to get the Ignition Vision client to run in the debugger… do you know what magic to do for that?

---

<div class="post-metadata">

**Author:** ![connor.elison](https://avatars.discourse-cdn.com/v4/letter/c/e495f1/32.png) [@connor.elison](https://forum.inductiveautomation.com/u/connor.elison)\
**Post date:** [January 23, 2020, 12:57am UTC](https://forum.inductiveautomation.com/t/ignition-8-designer-debugging-not-working/26192/17 "2020-01-23T00:57:21Z")

</div>

I ran into these same problems. For me, the solution was to scale back the number of jars added to the DesignerDebug classpath when launching the designer or client so that it only included the client-bootstrap artifact and everything else was pulled from the gateway.

My build.gradle for DesignerDebug is just

```auto
dependencies {
    implementation "com.inductiveautomation.ignition:client-bootstrap:${sdk_version}"
}

```

When launching the designer I use the VM options

```auto
-Djavaws.sr.gateway.addr.0=localhost:8088/main
-Djavaws.sr.main=com.inductiveautomation.ignition.designer.DesignerStartupHook
-Djavaws.ignition.debug=true
-Dautologin.username=<USERNAME>
-Dautologin.password=<PASSWORD>
-Dproject.name=<PROJECT_NAME>
-Djavaws.sr.runtimeOverride=true

```

When launching the client

```auto
-Djavaws.sr.gateway.addr.0=localhost:8088/main
-Djavaws.sr.main=com.inductiveautomation.factorypmi.application.runtime.ClientLaunchHook
-Djavaws.ignition.debug=true
-Dautologin.username=<USERNAME>
-Dautologin.password=<PASSWORD>
-Djavaws.sr.project=<PROJECT_NAME>
-Djavaws.sr.runtimeOverride=true

```

Maybe this will solve your issues as well.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [January 23, 2020, 4:23pm UTC](https://forum.inductiveautomation.com/t/ignition-8-designer-debugging-not-working/26192/18 "2020-01-23T16:23:19Z")

</div>

FWIW, I think the remote debug arg specified above is an older style - I’ve always had success with:  
`-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:8000` (no `-D` or anything needed) on Java 9+.

---

<div class="post-metadata">

**Author:** ![mpderbec](https://avatars.discourse-cdn.com/v4/letter/m/bbe5ce/32.png) [@mpderbec](https://forum.inductiveautomation.com/u/mpderbec)\
**Post date:** [September 16, 2020, 7:15pm UTC](https://forum.inductiveautomation.com/t/ignition-8-designer-debugging-not-working/26192/19 "2020-09-16T19:15:08Z")

</div>

Connor, your suggestion helped me get the last mile. I’m late in replying but thank you.
