Skip to content

adamrdrew/ephemeral-debugger-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ephemeral Debugger for Go Apps

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.

Requirements

Config

  1. Reserve an ephemeral namespace with Bonfire and note the name
  2. Copy .vscode/example.tasks.json to .vscode/tasks.json
  3. Edit .vscode/tasks.json and replace the environment variable values with your info

Usage

Resources Consulted

Helpful Commands

#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

About

Debug Golang apps in managed ephemeral environments

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published