This project allows you to execute and debug your code in a managed ephemeral environment. It manages the process of containerizing your app, setting up a debugger, and working with Quay and Openshift. All you have to do is click "Ephemeral Debugger" in the VSCode "Run and Debug" dialog and your code will be automagically set up in ephemeral with a remote debugger attached.
- Reserve an ephemeral namespace with Bonfire and note the name
- Copy
.vscode/example.tasks.jsonto.vscode/tasks.json - Edit
.vscode/tasks.jsonand replace the environment variable values with your info
#Describe the service and get the ingress URL
oc describe service ephemeral-debugger-service -n ephemeral-wjbumf
#Describe the pod and get details on status
oc describe pod ephemeral-debugger-pod -n ephemeral-ezprya
#Get a shell in the pod
oc exec ephemeral-debugger-pod -n ephemeral-ezprya -i -t -- bash
#Get pod logs
oc logs ephemeral-debugger-pod -n ephemeral-ezprya