go-debug

Debug Go programs with Delve to inspect variables and control flow.

2|1|Updated Apr 10, 2023
One-click install
npx skills add https://github.com/popoffvg/dotfiles --skill go-debug
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: go-debug
Source: https://github.com/popoffvg/dotfiles/tree/main/skills/go-debug
Command: npx skills add https://github.com/popoffvg/dotfiles --skill go-debug

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Go developers often struggle to identify runtime issues in Go applications. This skill provides a structured, interactive debugging workflow using Delve to set breakpoints, inspect variables, and iterate through goroutine interactions to quickly locate bugs.

Core Features & Use Cases

  • Interactive debugging with Delve: breakpoints, stepping, and variable inspection across Go code.
  • Test and application debugging: debug individual tests, attach to running processes, and inspect stack traces during live runs.
  • Concurrency and performance debugging: analyze goroutines, race conditions, and deadlocks to understand complex control flow.

Quick Start

Launch a Delve debugging session against your Go project to set breakpoints, inspect variables, and step through code.

Frequently Asked Questions about go-debug

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I debug goroutines and inspect variables in a Go application?

You can debug goroutines and inspect variables in a Go application by using Delve to interactively set breakpoints, step through code, and examine runtime state across live processes.

What is the best way to debug individual Go tests interactively?

Debugging individual Go tests requires launching an interactive Delve session against your test files, allowing you to set breakpoints and inspect stack traces during live execution.

Can I analyze race conditions and deadlocks during Go debugging?

Yes, analyzing race conditions and deadlocks during Go debugging allows you to understand complex control flow by inspecting goroutine interactions through Delve.

Do I need a specific environment to start interactive Go debugging with Delve?

Interactive Go debugging with Delve requires Delve installed locally, a compilable Go project, and test files to effectively inspect runtime state and step through code.

Does Delve work with running Go processes for live debugging?

Yes, Delve works with running Go processes by allowing you to attach to live runs, inspect stack traces, and interactively explore variables across breakpoints.

Why use Delve for debugging instead of standard logging in Go?

Using Delve for debugging instead of standard logging in Go allows you to interactively control execution flow, inspect variables at breakpoints, and analyze goroutines to quickly locate bugs.