I am trying to solve an issue were the JSON output of the DXA Model Service contains un-escaped RTF content breaking the JSON object. I would like build and debug the code of the DXA Model Service.

I am able to build the code, however it is not clear to me how to configure IntelliJ IDEA so I can attach the debugger to the Service Container.

Does anyone know how to set this up?


1 Answer 1


Kudos to Velmurugan; following his suggestion I found that debugging of the DXA Model Service is very straight forward by using the remote debugging feature. It's a 2 step process:

  1. Configuring remote debugging in IntelliJ IDEA remote debugging configuration

  2. Add remote debugging JVM parameters to the start script of the DXA Model Service enter image description here

Nice benefit of using remote debugging instead of trying to run the application within the IDE, is that you can debug the DXA Model Service from any environment, provided you add the JVM parameters to the start script.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.