MCPcopy Index your code
hub / github.com/mailgun/godebug

github.com/mailgun/godebug @v0.1

repository ↗ · DeepWiki ↗ · release v0.1 ↗ · + Follow
883 symbols 3,005 edges 80 files 453 documented · 51% updated 8y ago★ 2,47936 open issues
README

godebug

godebug is a code-generation-based debugger for Go. It is currently in alpha stage -- expect problems.

Installation:

$ go get github.com/mailgun/godebug

Use:

First, get your directory in a clean state. The command below will overwrite your files, so make sure you have committed or stashed everything.

In any file where you want a breakpoint, import github.com/mailgun/godebug/lib and insert this breakpoint anywhere in the code: godebug.SetTrace(). Then run:

$ godebug -w .

Your code is now self-debugging. Congrats! Run it with go run, test it with go test, or build then run it with go build.

Debugger commands:

The debugger is currently extremely limited. The commands are:

command result
n(ext) run until the next line
s(tep) run for one step
p(rint) [var] print a variable

The debugger will attempt to interpret any text that does not match the above commands as a variable name. If that variable exists, the debugger will print it.

Extension points exported contracts — how you extend this code

Type (Interface)
TODO(gri) Revisit factory functions - make sure they have all relevant parameters. A Type represents a type of Go. All t [11 …
Godeps/_workspace/src/golang.org/x/tools/go/types/type.go
Value (Interface)
A Value represents a mathematically exact value of a given Kind. [4 implementers]
Godeps/_workspace/src/golang.org/x/tools/go/exact/exact.go
Object (Interface)
TODO(gri) Document factory, accessor methods, and fields. General clean-up. An Object describes a named language entity [1 …
Godeps/_workspace/src/golang.org/x/tools/go/types/object.go
Sizes (Interface)
Sizes defines the sizing functions for package unsafe. [1 implementers]
Godeps/_workspace/src/golang.org/x/tools/go/types/sizes.go
Importer (FuncType)
An importer resolves import paths to Packages. The imports map records packages already known, indexed by package path.
Godeps/_workspace/src/golang.org/x/tools/go/types/api.go

Core symbols most depended-on inside this repo

Pos
called by 185
Godeps/_workspace/src/golang.org/x/tools/go/types/object.go
errorf
called by 117
Godeps/_workspace/src/golang.org/x/tools/go/types/errors.go
pos
called by 82
Godeps/_workspace/src/golang.org/x/tools/go/types/operand.go
Underlying
called by 69
Godeps/_workspace/src/golang.org/x/tools/go/types/type.go
tok
called by 60
Godeps/_workspace/src/golang.org/x/tools/go/ast/astutil/enclosing.go
assert
called by 58
Godeps/_workspace/src/golang.org/x/tools/go/types/errors.go
Name
called by 54
Godeps/_workspace/src/golang.org/x/tools/go/types/object.go
String
called by 41
Godeps/_workspace/src/golang.org/x/tools/go/types/type.go

Shape

Method 419
Function 340
Struct 70
TypeAlias 37
FuncType 10
Interface 7

Languages

Go100%

Modules by API surface

Godeps/_workspace/src/golang.org/x/tools/go/types/type.go82 symbols
Godeps/_workspace/src/golang.org/x/tools/go/exact/exact.go67 symbols
Godeps/_workspace/src/golang.org/x/tools/go/types/object.go61 symbols
Godeps/_workspace/src/golang.org/x/tools/go/gcimporter/gcimporter.go45 symbols
Godeps/_workspace/src/golang.org/x/tools/go/gcimporter/testdata/exports.go40 symbols
Godeps/_workspace/src/golang.org/x/tools/go/loader/loader.go33 symbols
Godeps/_workspace/src/golang.org/x/tools/go/types/expr.go26 symbols
Godeps/_workspace/src/golang.org/x/tools/go/types/check.go24 symbols
Godeps/_workspace/src/golang.org/x/tools/go/types/api.go24 symbols
Godeps/_workspace/src/golang.org/x/tools/go/types/typexpr.go21 symbols
lib/debug.go20 symbols
gen.go20 symbols

For agents

$ claude mcp add godebug \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact