# Keycloak 18.0.2 Quarkus debug not working

**URL:** <https://forum.keycloak.org/t/keycloak-18-0-2-quarkus-debug-not-working/17876>\
**Category:** Miscellanaeous\
**Created:** [October 11, 2022, 8:21am UTC](https://forum.keycloak.org/t/keycloak-18-0-2-quarkus-debug-not-working/17876 "2022-10-11T08:21:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![edwint88](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/edwint88/32/1103_2.png) [@edwint88](https://forum.keycloak.org/u/edwint88)\
**Post date:** [October 11, 2022, 8:21am UTC](https://forum.keycloak.org/t/keycloak-18-0-2-quarkus-debug-not-working/17876/1 "2022-10-11T08:21:55Z")

</div>

I try to start Quarkus with the --debug param and I get the following:

```auto
Listening for transport dt_socket at address: 8787
2022-10-11 08:14:44,025 INFO [org.keycloak.common.Profile] (main) Preview feature enabled: token_exchange
2022-10-11 08:14:44,026 WARN [org.keycloak.common.Profile] (main) Experimental feature enabled: dynamic_scopes
2022-10-11 08:14:44,044 INFO [org.keycloak.quarkus.runtime.hostname.DefaultHostnameProvider] (main) Hostname settings: FrontEnd: localhost, Strict HTTPS: false, Path: <request>, Strict BackChannel: false, Admin: <request>, Port: -1, Proxied: false
2022-10-11 08:14:44,644 WARN [org.infinispan.PERSISTENCE] (keycloak-cache-init) ISPN000554: jboss-marshalling is deprecated and planned for removal
2022-10-11 08:14:44,662 WARN [org.infinispan.CONFIG] (keycloak-cache-init) ISPN000569: Unable to persist Infinispan internal caches as no global state enabled
2022-10-11 08:14:44,683 INFO [org.infinispan.CONTAINER] (keycloak-cache-init) ISPN000556: Starting user marshaller 'org.infinispan.jboss.marshalling.core.JBossUserMarshaller'
2022-10-11 08:14:44,891 INFO [org.infinispan.CONTAINER] (keycloak-cache-init) ISPN000128: Infinispan version: Infinispan 'Triskaidekaphobia' 13.0.9.Final
2022-10-11 08:14:45,192 INFO [org.keycloak.connections.infinispan.DefaultInfinispanConnectionProviderFactory] (main) Node name: node_168962, Site name: null
2022-10-11 08:14:45,593 ERROR [org.keycloak.services] (main) KC-SERVICES0010: Failed to add user 'admin' to realm 'master': user with username exists
2022-10-11 08:14:45,951 INFO [io.quarkus] (main) Keycloak 18.0.2 on JVM (powered by Quarkus 2.7.5.Final) started in 3.744s. Listening on: http://0.0.0.0:8080 and https://0.0.0.0:8443
2022-10-11 08:14:45,951 INFO [io.quarkus] (main) Profile dev activated.
2022-10-11 08:14:45,951 INFO [io.quarkus] (main) Installed features: [agroal, cdi, hibernate-orm, jdbc-h2, jdbc-mariadb, jdbc-mssql, jdbc-mysql, jdbc-oracle, jdbc-postgresql, keycloak, narayana-jta, reactive-routes, resteasy, resteasy-jackson, smallrye-context-propagation, smallrye-health, smallrye-metrics, vault, vertx]
2022-10-11 08:14:45,954 WARN [org.keycloak.quarkus.runtime.KeycloakMain] (main) Running the server in development mode. DO NOT use this configuration in production.
                                                                                                                 
telnet localhost 8787
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
Connection closed by foreign host.

```

I start the docker container with these ports: -p 8787:8787 -p 8443:8443 -p 8080:8080  
the 8080 & 8443 work

Any ideas?

---

<div class="post-metadata">

**Author:** ![dasniko](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/dasniko/32/2969_2.png) [@dasniko](https://forum.keycloak.org/u/dasniko)\
**Post date:** [October 11, 2022, 9:09am UTC](https://forum.keycloak.org/t/keycloak-18-0-2-quarkus-debug-not-working/17876/2 "2022-10-11T09:09:21Z")

</div>

Try to set these env vars:

```auto
DEBUG: 'true'
DEBUG_PORT: '*:8787'

```

Also, I don’t use the `--debug` switch.

---

<div class="post-metadata">

**Author:** ![edwint88](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/edwint88/32/1103_2.png) [@edwint88](https://forum.keycloak.org/u/edwint88)\
**Post date:** [October 11, 2022, 7:19pm UTC](https://forum.keycloak.org/t/keycloak-18-0-2-quarkus-debug-not-working/17876/3 "2022-10-11T19:19:43Z")

</div>

I have already tried with the variables, that wasn’t the problem. However, your answer helped me, because I was missing the `*:` in front of the port and apparently with the new java that’s mandatory.  
So thank you!
