закешированный к нам в целях безопасности дебаггер
Go to file
Martin Tournoij 6fe97fa75b Support --output for debug, trace, and test commands (#1028)
* Support --output for debug, trace, and test commands

With the `--output` parameter you can configure the output binary. For
example:

    dlv debug --output /tmp/xxx

Will build the binary to `/tmp/xxx`, instead of always putting it as
`debug` in the current directory.

This ensures that the command always works (even if there is already a
file or directory named `debug`) and doesn't write to the source
directory. Especially for things like Delve/Vim integration this is a
good thing to have, I think.

* Address PR feedback and add a test

- We don't need to use `filepath.IsAbs()` on startup; I added that
  because it previously did `"./" + debugname` everywhere, but I don't
  think that's needed at all, since `pathname` without a leading `./`
  implies the current directory.

- Repurpose the existing `TestIssue398` to also test the `--output`
  flag. Also fix an issue where tests wouldn't work if `GOPATH` has
  multiple entries (e..g `GOPATH=$HOME/go:$HOME/mygocode`).

- Print an error if we can't remove the debug binary on exit instead of
  failing silently. Not strictly related to this PR, but a good change
  to add I think.

* Also warn when delve can't remove the binary in test/trace

I only added that to debug, but good to issue this warning consistently.
2017-11-28 10:51:30 -08:00
_fixtures proc: support access to chan buffers 2017-11-20 12:03:35 -08:00
assets Add high-res images 2015-05-19 12:25:26 -05:00
cmd/dlv Support --output for debug, trace, and test commands (#1028) 2017-11-28 10:51:30 -08:00
Documentation proc/eval: support more type casts 2017-10-25 13:20:25 +02:00
pkg pkg/proc, pkg/dwarf/op: support DW_OP_piece, DW_OP_regX, DW_OP_fbreg 2017-11-21 11:51:02 -08:00
scripts pkg/proc, pkg/dwarf/op: support DW_OP_piece, DW_OP_regX, DW_OP_fbreg 2017-11-21 11:51:02 -08:00
service proc: automatically dereference interfaces on member access 2017-11-20 12:03:35 -08:00
vendor pkg/dwarf/godwarf: split out type parsing from x/debug/dwarf 2017-08-01 11:20:25 -06: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 travis: remove 1.7.x go version 2017-11-03 19:53:49 +01:00
appveyor.yml *: Update appveyor.yml 2017-05-27 14:12:31 +02:00
CHANGELOG.md CHANGELOG: changed rc.2 date. 2017-10-20 12:14:15 -07:00
CONTRIBUTING.md Update CONTRIBUTING.md 2016-05-13 10:43:09 +08:00
glide.lock pkg/dwarf/godwarf: split out type parsing from x/debug/dwarf 2017-08-01 11:20:25 -06:00
glide.yaml pkg/dwarf/godwarf: split out type parsing from x/debug/dwarf 2017-08-01 11:20:25 -06: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 proc/tests: fix intermittent test stall on windows 2017-08-30 11:40:17 -07:00
README.md *: Bump version to 1.0.0-rc.1 2017-05-06 15:38:32 +02:00

Delve

license GoDoc Build Status Build status Join the chat at https://gitter.im/derekparker/delve

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.