закешированный к нам в целях безопасности дебаггер
Go to file
Alessandro Arzilli ade20a4d4d
proc/native: better error message when building on unsupported systems (#1883)
As we rearrange the code and the Go compiler changes the error message
returned by the compiler on unsupported architectures will change too,
making it un-googlable. Since the error message tends to be rather
obscure too this regularly confuses newbies.

This is an effort to make the error message for unsupported GOOS/GOARCH
combinations the same across all unsupported combinations and to make
it more user friendly.

Directories containing Go source code are supposed to contain a single
package. This property happens to be checked by cmd/go itself so it
will happen even before the syntax is fully checked and therefore has a
high probability of being the first (and only) error message being
print.

Here we take advantage of this by adding to the pkg/proc/native
directory a file with a bad package line that only gets compiled in on
unsupported GOOS/GOARCH combinations.

At present the error message for compiling Delve on unsupported systems
will be:

service/debugger/debugger.go:21:2: found packages native (proc.go) and your_operating_system_and_architecture_combination_is_not_supported_by_delve (support_sentinel.go) in $PATH_TO_DELVE/pkg/proc/native
2020-02-24 09:39:51 -08:00
_fixtures dwarf/line: Fixed DirIdx (index starts at one) (#1873) 2020-02-21 09:00:34 -08:00
assets Add high-res images 2015-05-19 12:25:26 -05:00
cmd/dlv service/dap: Initial implementation for 'dlv dap' (#1858) 2020-02-15 11:52:53 -08:00
Documentation service/dap: Initial implementation for 'dlv dap' (#1858) 2020-02-15 11:52:53 -08:00
pkg proc/native: better error message when building on unsupported systems (#1883) 2020-02-24 09:39:51 -08:00
scripts scripts: support macOS 10.15 or later 2020-02-24 09:30:47 -08:00
service service/dap: avoid hardcoded []byte slices in DAP tests (#1881) 2020-02-24 09:36:34 -08:00
vendor service/dap: Initial implementation for 'dlv dap' (#1858) 2020-02-15 11:52:53 -08:00
.cirrus.yml *: Add .cirrus.yml for FreeBSD testing (#1639) 2019-07-30 08:38:25 -07:00
.gitattributes makefile: use git's $Id$ instead of setting ver.Build in makefile (#807) 2017-04-28 10:14:33 -07:00
.gitignore git: Update gitignore 2015-10-20 20:55:11 -07:00
.travis.yml Revert "travis: exclude builds of Go other than most recent from ARM64 builds" 2019-12-10 07:55:57 -08:00
appveyor.yml *: Missed go-delve renames 2019-01-04 11:21:33 -08:00
CHANGELOG.md *: Update CHANGELOG.md - fix v1.4.0's date being 2019 (#1861) 2020-02-12 08:59:18 -08:00
CONTRIBUTING.md README: Remove gitter chat link. 2020-01-21 09:06:53 -08:00
go.mod service/dap: Initial implementation for 'dlv dap' (#1858) 2020-02-15 11:52:53 -08:00
go.sum service/dap: Initial implementation for 'dlv dap' (#1858) 2020-02-15 11:52:53 -08:00
ISSUE_TEMPLATE.md misc: Include issue template for GitHub 2016-03-03 10:40:14 -08:00
LICENSE Add License and README 2014-05-03 15:31:52 -05:00
Makefile *: Fix typo in Makefile (#1869) 2020-02-18 10:02:04 -08:00
README.md *: Update AppVeyor badge 2020-01-22 11:55:30 +01:00

Delve

license GoDoc Build Status Build status

The GitHub issue tracker is for bugs only. Please use the developer mailing list for any feature proposals and discussions.

About Delve

Delve is a debugger for the Go programming language. The goal of the project is to provide a simple, full featured debugging tool for Go. Delve should be easy to invoke and easy to use. Chances are if you're using a debugger, things aren't going your way. With that in mind, Delve should stay out of your way as much as possible.