JAVA_OPTS: -server -Xms64m -Xmx512m -XX:MetaspaceSize=96M -XX:MaxMetaspaceSize=256m 4Stack=true =true -agentlib:jdwp=transport=dt_socket,address=8100,server=y,suspend=n JBOSS_HOME: /home/orivat/keycloak_latest/keycloak-4.6.0.Final On our example, keycloak server is launched with debug port 8100 sh standalone.sh -debug 8100 debug Activate debug mode with an optional argument to specify the port. This can be done straightforward using the standalone.sh command with debug option Usage: standalone.sh Keycloak by itself is already geared to be launched in debug mode without any tweaking. In order to bind eclipse debugger to keycloak, keycloak needs to be launched in debug mode. On the screenshot below, we are using eclipse to browse SysoutEventListenerProvider.java Enter the root directory of keycloak examplesĪt the end, you can now browser keycloak examples sources within eclipse.select existing maven projects, click next.You need to import in eclipse the keycloak example sources Importing keycloak examples maven project Now your keycloak-4.6.debug workspace is created. specify a new workspace name (here keycloak-4.6.debug).You first need to create a dummy empty eclipse projet in a nutshell. ![]() ![]() You need to have compiled the keycloak source distribution (cf before) containing the examples.Ĭreating a new eclipse debugging workspace. ![]() The example used is the eventListener described in a previous article. In this section is presented how to using eclipse to debug Keycloak SPI code.
0 Comments
Leave a Reply. |