закешированный к нам в целях безопасности дебаггер
Go to file
Álex Sáez 95e7cafd0c
terminal/command: Add 'reload' command (#1971)
* terminal/command: Add 'reload' command

These changes add the 'reload' command, which allows us to rebuild the project
and start the debugging session again. Currently, if the project's code is
updated while debugging it, Delve shows the new source code, but it's still
running the old one. With 'reload', the whole binary is rebuilt, and the
process starts again.

Fixes #1551

* Remove unnecessary print

Changes to be committed:
      modified:   pkg/terminal/command.go

* Add tests and refactor the code

Changes to be committed:
      modified:   cmd/dlv/cmds/commands.go
      modified:   go.mod
      modified:   pkg/terminal/command.go
      modified:   service/config.go
      modified:   service/debugger/debugger.go
      modified:   service/test/integration2_test.go

* Fix typo in the comment

Changes to be committed:
      modified:   service/debugger/debugger.go

* Fix typo in the name of the variables

The variables are local therefore the capitalization is not needed

Changes to be committed:
      modified:   cmd/dlv/cmds/commands.go

* Call GoTestBuild

Also, remove the := to avoid redeclaration

* Change the Kind in the tests

Change from debugger.ExecutingGeneratedTest to
debugger.ExecutingGeneratedFile for consistency.
We are generating a real binary instead of a test
one so ExecutingGeneratedFile makes more sense here.

Changes to be committed:
      modified:   service/test/integration2_test.go

* Avoid breakpoints based on addresses

Changes to be committed:
      modified:   service/debugger/debugger.go

* Update the rebuild behaviour

There are a few cases where we can't rebuild the binary because we don't
know how it was build.

Changes to be committed:
      modified:   service/debugger/debugger.go

* Fix typos and update documentation

Changes to be committed:
      modified:   Documentation/cli/README.md
      modified:   pkg/terminal/command.go
      modified:   service/config.go
      modified:   service/debugger/debugger.go

* Fix typo

* Remove variables

They were added to the debugger.Config

* Rename variable

Rename Kind to ExecuteKind to make it more accurate

Changes to be committed:
      modified:   cmd/dlv/cmds/commands.go
      modified:   service/debugger/debugger.go
      modified:   service/test/integration2_test.go
2020-06-05 11:03:09 -07:00
_fixtures cmd/dlv: do not ignore regex when tracing pid (#2069) 2020-06-02 12:07:03 -07:00
_scripts Makefile: reduce test timeout when TRAVIS==true 2020-04-17 09:20:55 -07:00
assets Add high-res images 2015-05-19 12:25:26 -05:00
cmd/dlv terminal/command: Add 'reload' command (#1971) 2020-06-05 11:03:09 -07:00
Documentation terminal/command: Add 'reload' command (#1971) 2020-06-05 11:03:09 -07:00
pkg terminal/command: Add 'reload' command (#1971) 2020-06-05 11:03:09 -07:00
service terminal/command: Add 'reload' command (#1971) 2020-06-05 11:03:09 -07:00
vendor vendor: remove github.com/pkg/profile dependency (#2053) 2020-05-14 10:16:09 -07:00
.cirrus.yml *: Update freebsd image 2020-04-08 11:40:24 +02:00
.deepsource.toml *: mv scripts _scripts 2020-03-28 20:28:51 +01:00
.gitattributes makefile: use git's $Id$ instead of setting ver.Build in makefile (#807) 2017-04-28 10:14:33 -07:00
.gitignore vendor: check vendor directory (#1962) 2020-03-26 09:25:50 -07:00
.travis.yml service/debugger: Fix checking for CI 2020-04-14 21:02:38 +02:00
CHANGELOG.md *: v1.4.1 (#2059) 2020-05-22 20:09:01 +02:00
CONTRIBUTING.md README: Remove gitter chat link. 2020-01-21 09:06:53 -08:00
go.mod vendor: remove github.com/pkg/profile dependency (#2053) 2020-05-14 10:16:09 -07:00
go.sum terminal/command: Add 'reload' command (#1971) 2020-06-05 11:03:09 -07: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 *: mv scripts _scripts 2020-03-28 20:28:51 +01:00
README.md doc/readme: Remove the Build Status of appveyor (#2055) 2020-05-18 09:36:42 -07:00

Delve

license GoDoc 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.