Repository Analysis

go-delve/delve

Delve is a debugger for the Go programming language.

2.9 Likely human-written View on GitHub
2.9
Adjusted Score
2.9
Raw Score
100%
Time Factor
2026-05-25
Last Push
24,763
Stars
Go
Language
132,373
Lines of Code
599
Files
204
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 5HIGH 0MEDIUM 73LOW 126

Pattern Findings

204 matches across 8 categories. Click a row to expand file-level details.

AI Slop Vocabulary72 hits · 198 pts
SeverityFileLineSnippet
MEDIUMcmd/dlv/dlv_test.go164 // Give delve some time to compile and write the binary.
MEDIUMcmd/dlv/dlv_test.go190 // Sometimes delve on Windows can't remove the built binary before
MEDIUMcmd/dlv/dlv_test.go192 // See: https://travis-ci.com/go-delve/delve/jobs/296325131.
MEDIUMcmd/dlv/dlv_test.go1811 // Check that when delve is run twice in the same directory simultaneously
MEDIUMcmd/dlv/cmds/commands.go400 // -c is unused and exists so delve can be used with coredumpctl
MEDIUMcmd/dlv/cmds/commands.go1007// so SIGINT gets sent to the debuggee and not to delve.
MEDIUMcmd/dlv/cmds/commands.go1013 // as SIGINT to delve. Ignore it instead of stopping the server
MEDIUM.github/ISSUE_TEMPLATE/issue_template.yml27 If this is about source listing not showing up (or breakpoints not being accepted) while running in a container
MEDIUMservice/test/integration2_test.go2532 // See https://github.com/go-delve/delve/issues/2259
MEDIUMservice/rpccommon/server.go28//go:generate go run github.com/go-delve/build-tools/cmd/gen-suitablemethods@latest suitablemethods
MEDIUMservice/rpccommon/server.go365// GetVersion returns the version of delve as well as the API version
MEDIUMservice/rpccommon/suitablemethods.go1// DO NOT EDIT: auto-generated using github.com/go-delve/build-tools/cmd/gen-suitablemethods
MEDIUMservice/api/prettyprint.go514 // See https://ci.appveyor.com/project/derekparker/delve-facy3/builds/30179356.
MEDIUMservice/rpc2/server.go278// `debugger.CreateBreakpoint` here: https://pkg.go.dev/github.com/go-delve/delve/service/debugger#Debugger.CreateBreakp
MEDIUMservice/rpc2/server.go551// See https://github.com/go-delve/delve/blob/master/Documentation/cli/expr.md
MEDIUMservice/rpc2/client.go290// https://pkg.go.dev/github.com/go-delve/delve/service/debugger#Debugger.CreateBreakpoint
MEDIUMservice/dap/handles.go22 // https://github.com/go-delve/delve/blob/master/Documentation/api/ClientHowto.md#loading-more-of-a-variable
MEDIUMservice/dap/server.go2// This allows delve to communicate with frontends using DAP
MEDIUMservice/dap/server.go865 /*TODO*/ s.sendUnsupportedErrorResponse(request.Request) // https://github.com/go-delve/delve/issues/2851
MEDIUMservice/dap/server.go3083 // https://github.com/go-delve/delve/blob/master/Documentation/api/ClientHowto.md#looking-into-variables.
MEDIUMservice/dap/server.go4187Unable to propagate EXC_BAD_ACCESS signal to target process and panic (see https://github.com/go-delve/delve/issues/852)
MEDIUMservice/dap/server.go4329 // Filter out internal delve breakpoints (panic, fatal, hardcoded, etc.)
MEDIUMservice/dap/types.go202 // https://github.com/go-delve/delve/blob/master/Documentation/cli/README.md#goroutines
MEDIUMservice/dap/server_test.go608 // TODO(polina): once https://github.com/go-delve/delve/issues/2259 is
MEDIUMservice/dap/server_test.go4049 t.Skip("test skipped on Windows, see https://delve.teamcity.com/project/Delve_windows for details")
MEDIUMservice/dap/server_test.go6214 t.Skip("test skipped on Windows, see https://delve.teamcity.com/project/Delve_windows for details")
MEDIUMservice/dap/daptest/client.go5//go:generate go run github.com/go-delve/build-tools/cmd/gen-daptest@latest -o ./resp.go
MEDIUMservice/dap/daptest/client.go647// KnownEvent passes decode checks, but delve has no 'case' to
MEDIUMservice/dap/daptest/client.go649// added to go-dap, but not to delve.
MEDIUM.teamcity/pom.xml25 <url>https://delve.teamcity.com/app/dsl-plugins-repository</url>
MEDIUMpkg/proc/proc_amd64_test.go82 // Fixes issue https://github.com/go-delve/delve/issues/2985
MEDIUMpkg/proc/target_exec.go1702 // in delve to support breakpoints in cgo.
MEDIUMpkg/proc/bininfo.go85 // github.com/go-delve/delve
MEDIUMpkg/proc/bininfo.go86 // will map to 'delve' because it ends in '/delve'.
MEDIUMpkg/proc/bininfo.go1617 // Previous versions of delve looked for the build id in every debug info
MEDIUMpkg/proc/bininfo.go1624 // Previous versions of delve looked for the executable filename (with
MEDIUMpkg/proc/bininfo.go1907 // This is a bit arcane. Essentially:
MEDIUMpkg/proc/bininfo.go2295// See also https://github.com/go-delve/delve/issues/3797
MEDIUMpkg/proc/variables.go174 // When this happens delve will have to scan many empty buckets to find the
MEDIUMpkg/proc/variables.go179 // Since there is no good way for a user of delve to specify the value of
MEDIUMpkg/proc/ppc64le_disasm.go34 // address, Teach delve to recognize this sequence to appropriately adjust PC address so that the breakpoint is actuall
MEDIUMpkg/proc/proc_test.go695 skipOn(t, "broken - see https://github.com/go-delve/delve/issues/3158", "darwin", "amd64")
MEDIUMpkg/proc/proc_test.go1795 // See: https://github.com/go-delve/delve/pull/2082
MEDIUMpkg/proc/proc_test.go4911 // https://github.com/go-delve/delve/issues/2346
MEDIUMpkg/proc/proc_test.go4931 skipOn(t, "see https://github.com/go-delve/delve/issues/2768", "windows")
MEDIUMpkg/proc/proc_test.go4985 skipOn(t, "see https://github.com/go-delve/delve/issues/2768", "windows")
MEDIUMpkg/proc/proc_test.go5108 skipOn(t, "see https://github.com/go-delve/delve/issues/2768", "windows")
MEDIUMpkg/proc/proc_test.go5896 skipOn(t, "see https://github.com/go-delve/delve/issues/2768", "windows")
MEDIUMpkg/proc/proc_test.go5930 skipOn(t, "see https://github.com/go-delve/delve/issues/2768", "windows")
MEDIUMpkg/proc/proc_test.go5969 skipOn(t, "see https://github.com/go-delve/delve/issues/2768", "windows")
MEDIUMpkg/proc/proc_unix_test.go37 // SIGINT directed at the inferior should be passed along not swallowed by delve
MEDIUMpkg/proc/breakpoints.go122// BreakpointKind determines the behavior of delve when the
MEDIUMpkg/proc/fncall.go670 // See: https://github.com/go-delve/delve/pull/2451#discussion_r665761531
MEDIUMpkg/proc/fncall.go878 // See https://github.com/go-delve/delve/issues/2985 and
MEDIUMpkg/proc/eval.go557 // See https://github.com/go-delve/delve/issues/2049 for details
MEDIUMpkg/proc/core/core_test.go617 t.Fatalf("issue #3591: main.mod_map frame SP mismatch: delve=%#x runtime=%#x (see panic.txt in test temp dir pattern)"
MEDIUMpkg/proc/native/dump_linux.go51 // pure PFN range, see https://github.com/go-delve/delve/issues/2630
MEDIUMpkg/proc/native/ptrace_linux_386.go31 // ignore ENODEV, it just means this CPU or kernel doesn't support XSTATE, see https://github.com/go-delve/delve/issu
MEDIUMpkg/proc/native/ptrace_linux_amd64.go30 // ignore ENODEV, it just means this CPU or kernel doesn't support XSTATE, see https://github.com/go-delve/delve/issu
MEDIUMpkg/proc/native/proc_windows.go194// - https://github.com/go-delve/delve/issues/3136
12 more matches not shown…
Over-Commented Block115 hits · 115 pts
SeverityFileLineSnippet
LOWcmd/dlv/cmds/helphelpers/help.go1package helphelpers
LOW_scripts/rtype.go1// This script checks that the Go runtime hasn't changed in ways that Delve
LOW_scripts/rtype.go21// // +rtype -field S.F T
LOW_scripts/rtype.go41// and check that type T has the specified fields.
LOWservice/client.go141 // FindLocation returns concrete location information described by a location expression
LOWservice/debugger/debugger.go101 // only when launching a new process.
LOWservice/debugger/debugger.go661// The ways of specifying a breakpoint are listed below in the order they are considered by
LOWservice/api/types.go21type DebuggerState struct {
LOWservice/api/types.go41 // NextInProgress indicates that a next or step operation was interrupted by another breakpoint
LOWservice/api/types.go81type Breakpoint struct {
LOWservice/api/types.go341 // contents.
LOWservice/api/types.go441)
LOWservice/api/types.go461 WithEvents bool
LOWservice/rpc2/server.go661// If arg.Filters are specified the list of returned goroutines is filtered
LOWservice/rpc2/server.go761 Locations []api.Location
LOWservice/dap/server.go41 "github.com/go-delve/delve/pkg/proc"
LOWservice/dap/server.go61// signal that can come from an OS interrupt (such as Ctrl-C) or
LOWservice/dap/server.go81// goroutines here because the dap server does not support
LOWservice/dap/server.go181
LOWservice/dap/server.go281}
LOWservice/dap/server.go361 // Results of a call are single-use and transient. We need to maximize
LOWservice/dap/server.go501 // Unless Stop() was called after read loop in ServeDAPCodec()
LOWservice/dap/server.go521 // Avoid accidentally closing the channel twice and causing a panic, when
LOWservice/dap/server.go721 // for requests such as continue or step because they would skip
LOWservice/dap/server.go3381 isAssignment = true
LOWservice/dap/server.go3621 // VSCode tries to locally update the UI when the set variable
LOWservice/dap/server.go3881 }
LOWservice/dap/server.go3901 // 0x0002 nop
LOWservice/dap/types.go21// same args as above
LOWservice/dap/types.go61 defaultAttachConfig = AttachConfig{
LOWservice/dap/types.go81 // to debug in `exec` mode.
LOWservice/dap/types.go101 Cwd string `json:"cwd,omitempty"`
LOWservice/dap/types.go121 Output string `json:"output,omitempty"`
LOWservice/dap/types.go141 // using Delve's working directory will use this new directory.
LOWservice/dap/types.go201 // shown in the call stack view. See filtering documentation:
LOWservice/dap/server_test.go341 <-serverStopped
LOWservice/dap/server_test.go361// : 6 >> threads
LOWservice/dap/server_test.go2061 checkVarExact(t, locals, -1, "ni8", "ni8", "-5", "int8", noChildren)
LOWservice/dap/server_test.go4061 if runtime.GOOS == "windows" {
LOWservice/dap/server_test.go5601 terminated bool
LOW_fixtures/cgostacktest/hello.c1#include <stdio.h>
LOW_fixtures/testvariablescgo/test.c1#include <stdlib.h>
LOWpkg/proc/arm64_arch.go61 a := bi.Arch
LOWpkg/proc/arm64_arch.go161 // For a detailed description of how this works read the long comment at
LOWpkg/proc/amd64_arch.go61 // - sp is cfa
LOWpkg/proc/scope_test.go41 }
LOWpkg/proc/target_exec.go681// - a breakpoint on the first deferred function with NextDeferBreakpoint
LOWpkg/proc/bininfo.go1781 // https://github.com/golang/go/issues/58474#issuecomment-1785681472 happens.
LOWpkg/proc/variables.go61)
LOWpkg/proc/variables.go81 VariableReturnArgument
LOWpkg/proc/variables.go161 // MaxMapBuckets is the maximum number of map buckets to read before giving up.
LOWpkg/proc/variables.go241 hi, lo uint64
LOWpkg/proc/variables.go381// FindGoroutine returns a G struct representing the goroutine
LOWpkg/proc/variables.go661
LOWpkg/proc/variables.go2041 if count >= cfg.MaxArrayValues || int64(count) >= v.Len {
LOWpkg/proc/proc_test.go3401}
LOWpkg/proc/target.go561const (
LOWpkg/proc/doc.go1// Package proc is a low-level package that provides methods to manipulate
LOWpkg/proc/stack.go21// $GOROOT/src/runtime/traceback.go
LOWpkg/proc/stack.go41 // Frame registers.
55 more matches not shown…
Hallucination Indicators5 hits · 50 pts
SeverityFileLineSnippet
CRITICALpkg/proc/target_exec.go782 if !backward && !topframe.Current.Fn.cu.image.Stripped() {
CRITICALpkg/proc/target_exec.go1062 if topframe.Call.Fn == nil || topframe.Call.Fn.cu.image.Stripped() {
CRITICALpkg/proc/target_exec.go1071 dwarfTree, err := topframe.Current.Fn.cu.image.getDwarfTree(topframe.Current.Fn.offset)
CRITICALpkg/proc/stack.go408 r.Call.File, r.Call.Line = r.Current.Fn.cu.lineInfo.PCToLine(r.Current.Fn.Entry, it.pc-1)
CRITICALpkg/proc/stack.go498 dwarfTree, err := frame.Call.Fn.cu.image.getDwarfTree(frame.Call.Fn.offset)
Fake / Example Data7 hits · 7 pts
SeverityFileLineSnippet
LOWcmd/dlv/dlv_test.go1032 Street: "123 Main St",
LOWcmd/dlv/dlv_test.go1037 Street: "123 Main St",
LOW_fixtures/issue1598.go9 return `Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut
LOW_fixtures/issue1598.go9 return `Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut
LOW_fixtures/traceverb.go48 Street: "123 Main St",
LOWpkg/terminal/command_test.go1068 if !strings.Contains(r, "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut
LOWpkg/terminal/command_test.go1068 if !strings.Contains(r, "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut
Self-Referential Comments1 hit · 3 pts
SeverityFileLineSnippet
MEDIUM_scripts/gencert.sh13# Create the certificate template
Hyper-Verbose Identifiers2 hits · 2 pts
SeverityFileLineSnippet
LOWDocumentation/cli/starlark.md170def command_goroutine_start_line(args):
LOWDocumentation/cli/starlark.md238def command_switch_to_main_goroutine(args):
Redundant / Tautological Comments1 hit · 2 pts
SeverityFileLineSnippet
LOW_scripts/gencert.sh3# Check if the certificate is already present in the system keychain
Example Usage Blocks1 hit · 2 pts
SeverityFileLineSnippet
LOWpkg/debugdetect/doc.go8// Example usage: