- Open Che -> Workspaces -> -your workspace- -> Env Variables
- Add
WSAGENT_DEBUGtrue - Add
WSAGENT_DEBUG_PORT8000 - If the agent should suspend on start add
WSAGENT_DEBUG_SUSPENDy - Hit Apply
To quickly figure out the ip of the agent container run docker ps in the console and find the line with eclipse-che/workspace... and in that line the debug port is at 0.0.0.0:xxxxxxx->8000/tcp
The host is localhost when using Docker.
Run the following command:
$ kubectl get pod --namespace che -l che.original_name=dockerimage -o custom-columns=NAME:metadata.name,IP:status.podIP
The port is 8000 when using Kubernetes.