Debug local CPS-NCMP with Docker

Debug local CPS-NCMP with Docker

 

1. Modify by the docker-compose/cps-base.yml file

Follow the required steps in the cps-base.yml file. Look for '### DEBUG' comments to enable CPS-NCMP debugging.
Make sure that you only pull up only 1 instance of CPS/NCMP and that you enable the debug port!
Spin up the containers with the docker compose -f cps-base.yml up -d command.

2. In intellij open run → edit configurations

Add a debug configuration in IntelliJ if you don't have already.

Click on the Add New Configurations button in the Debug/Run configurations window and add a new Remote JVM Debug config:


image-20250529-111341.png

The command line arguments are: -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=*:5005

 

  1. Run the debug config

After launching CPS from the docker compose file select the debug config from the dropdown menu and click on the debug button on the top right corner.

Set up you breakpoints and then start testing CPS!

 

Happy debugging!