There was an error while loading. Please reload this page.
Push your app in "debug" mode
odo push --debug
Note: The default odo debug port 5858 will be used.
Setup port forwarding from your cluster to your local workspace
Using odo:
odo debug port-forward
A specific local port can be specified with the --local-port flag
--local-port
Using kubectl:
kubectl port-forward <pod_name> 5858:5858
Connect a debugger to localhost:5858 (or whatever local port you forwarded to)
Add -Dmaven.failsafe.debug to test command
-Dmaven.failsafe.debug
Push your app to your cluster
odo push
Forward the Maven default debug port (5005) from your cluster to your local workspace
kubectl port-forward <pod_name> 5005:5005
Run your tests
odo test --show-log
Connect a debugger to localhost:5005