This is an internal documentation. There is a good chance you’re looking for something else. See Disclaimer.

Remote Debugging of Nice2

Warning

Always make sure you select Suspend -> Thread for breakpoints in IDEA, so that you don’t freeze the whole application during your debugging session.

  1. forward the debugging port to your machine

    1. switch project

      $ oc project nice-${INSTALLATION}
    2. find running pod

      $ oc get pods -l run=nice --show-all=false
      NAME           READY     STATUS    RESTARTS   AGE
      nice-3-2nl1q   2/2       Running   0          49m
    3. forward port

      $ oc port-forward nice-3-2nl1q 40200
  2. Now Set Up Remote Debugging in IDEA

    ../../_images/remote_debugging.png

    Add debug configuration in IDEA.