1. 25 9月, 2021 1 次提交
  2. 23 7月, 2021 1 次提交
    • H
      all: update github.com/spf13/cobra to v1.1.3 (#2572) · f74b7a6e
      Hyang-Ah Hana Kim 提交于
      This removes indirect dependencies from go.mod, and
      includes the fix for the missing -help flag info.
      
      The latest cobra release is v1.2.1. Given that there were
      minor security-related dependency cleanup during v1.2 release,
      I was tempted to pick up the latest version, but that caused
      dependency updates in golang.org/x/sys and golang.org/x/tools
      which may be too recent (golang.org/x/* follow the go's release
      support policy, so recent versions may not be compatible with
      go versions beyond go's official version support policy).
      
      Verified that dlv still builds with go1.12.x.
      (go1.12 is the oldest version of go that can build the latest delve already).
      
      $ go get -d github.com/spf13/cobra@v1.1.3
      $ go mod tidy
      $ go mod vendor
      $ go run _scripts/gen-usage-docs.go
      f74b7a6e
  3. 06 1月, 2021 1 次提交
  4. 22 10月, 2020 1 次提交
  5. 02 9月, 2020 1 次提交
    • A
      cmd,proc,terminal,debugger: Support default file descriptor redirects · 7555d1c0
      aarzilli 提交于
      Adds features to support default file descriptor redirects for the
      target process:
      
      1. A new command line flag '--redirect' and '-r' are added to specify
         file redirects for the target process
      2. New syntax is added to the 'restart' command to specify file
         redirects.
      3. Interactive instances will check if stdin/stdout and stderr are
         terminals and print a helpful error message if they aren't.
      7555d1c0
  6. 01 9月, 2020 1 次提交
  7. 12 6月, 2020 1 次提交
  8. 16 2月, 2020 1 次提交
    • P
      service/dap: Initial implementation for 'dlv dap' (#1858) · fbc4623c
      polinasok 提交于
      * Initial implementation for 'dlv dap'
      
      * Fix Travis and AppVeyor failures
      
      * Address review comments
      
      * Address review comments
      
      * Regenrate documentation
      
      * Replace dap server printfs with log.Error
      
      * Update 'dap log'
      
      * Fix typos
      
      * Revert logflags changes that got mixed in by accident
      fbc4623c
  9. 12 2月, 2020 1 次提交
  10. 08 10月, 2019 1 次提交
  11. 02 8月, 2019 1 次提交
    • A
      Documentation,cmd/dlv: tidy up --help output (#1649) · 2bd1cd3f
      Alessandro Arzilli 提交于
      * scripts: use relative path in gen-cli-docs.go
      
      Makes gen-cli-docs.go work outside GOPATH.
      
      * Documentation,cmd/dlv: tidy up --help output
      
      The description of --log-dest, --log-output and --backend is very
      verbose and messes up the output of --help, move it to two "additional
      help" subcommands.
      2bd1cd3f
  12. 30 7月, 2019 1 次提交
    • D
      *: Add .cirrus.yml for FreeBSD testing (#1639) · f4eaad69
      Derek Parker 提交于
      * *: Add .cirrus.yml for FreeBSD testing
      
      * *: run go mod tidy
      
      * service/test: prefer 127.0.0.1 over localhost
      
      * dwarf/line: fix TestDebugLinePrologueParser
      
      * vendor: rerun go mod vendor
      f4eaad69
  13. 27 4月, 2019 1 次提交
    • A
      cmd/dlv: add Go version check (#1533) · 79e0f543
      Alessandro Arzilli 提交于
      Before doing anything check that the version of Go is compatible with
      the current version of Delve.
      This will improve the error message in the case that  another change as
      disruptive as Go1.11 dwarf compression, happens.
      79e0f543
  14. 28 3月, 2019 1 次提交
    • A
      Miscellaneous logging improvements (#1525) · 48f1f51e
      Alessandro Arzilli 提交于
      * *: use loglevel to control what gets logged instead of output redirection
      
      This stops logrus from doing all the formatting just to discard it
      immediately afterwards.
      
      * logflags: replace default formatter of logrus
      
      The default formatter of logrus emits logs in two different formats
      depending on whether or not the output is going to a terminal. The
      output format for non-terminals is indented to be machine readable, but
      we mostly read logs ourselves and the excessive quoting makes that
      format unreadable.
      When outputting to terminals it uses ANSI escape codes unconditionally,
      without checking whether the terminal it is connected to actually
      supports colors.
      
      This commit replaces the default formatter with a much simpler
      formatter that always uses a more readable format, doesn't use colors
      and places the key-value pairs at the beginning of the line (which is a
      better match for how we use them).
      
      * cmd/dlv: add command line options to redirect logs
      
      Adds two options, --log-to-file and --log-to-fd, to redirect logs to a
      file or to a file descriptor.
      
      When one of those two options is specified the "API server listening
      at:" message will also be redirected to the specified file/file
      descriptor.
      This allows clients that want to use the "API server listening at:"
      message to do so even if they want to redirect the target's stdout to
      another file or device.
      
      Implements #1179, #1523
      48f1f51e
  15. 22 11月, 2018 1 次提交
  16. 14 7月, 2018 1 次提交
  17. 15 6月, 2018 1 次提交
    • A
      service,logflags: log all RPC messages · 454491ce
      aarzilli 提交于
      We occasionally receive bug reports from users of VSCode-go and GoLand.
      GoLand has its own way of capturing the packet exchange between itself
      and delve but VSCode-go (supposedly) doesn't.
      So far this hasn't been a problem since all bug reports were obvious
      bugs on the plugin or easy to reproduce without VSCode-go, but it might
      be helpful in the future to have a way to log the packet exchange
      between dlv and a frontend.
      
      This commit adds a --log-output option to enable logging of all rpc
      messages and changes service/rpccommon accordingly.
      454491ce
  18. 12 6月, 2018 1 次提交
    • A
      proc,dwarf/line: support is_stmt and prologue_end flags · 5155ef04
      aarzilli 提交于
      Go1.11 uses the is_stmt flag of .debug_line to communicate which
      assembly instructions are good places for breakpoints, we should
      respect this flag.
      
      These changes were introduced by:
      * https://go-review.googlesource.com/c/go/+/102435/
      
      Additionally when setting next breakpoints ignore all PC addresses that
      belong to the same line as the one currently under at the cursor. This
      matches the behavior of gdb and avoids stopping multiple times at the
      heading line of a for statement with go1.11.
      
      Change: https://go-review.googlesource.com/c/go/+/110416 adds the
      prologue_end flag to the .debug_line section to communicate the end of
      the stack-split prologue. We should use it instead of pattern matching
      the disassembly when available.
      
      Fixes #550
      
      type of interfaces
      'c7cde8b1'.
      5155ef04
  19. 27 4月, 2018 1 次提交
  20. 19 4月, 2018 1 次提交
  21. 18 4月, 2018 1 次提交
  22. 26 1月, 2018 1 次提交
  23. 21 6月, 2017 1 次提交
  24. 06 5月, 2017 1 次提交
  25. 17 2月, 2017 1 次提交
  26. 21 5月, 2016 1 次提交
  27. 19 4月, 2016 1 次提交
  28. 09 4月, 2016 1 次提交
  29. 20 2月, 2016 1 次提交
    • D
      docs: Move wiki docs into Documentation dir · 63a66082
      Derek Parker 提交于
      Going forward, all documentation should be placed in the Documentation
      directory in the root of the project. This switch allows maintainers to
      approve updates to documentation before they are committed, as opposed
      to the pre-existing wiki which anybody could modify.
      
      Currently the Documentation directory includes docs on building, usage,
      and minimal docs around the API. This is just the initial commit, and
      documentation will continue to improve over time.
      
      Some changes have been made (and will continue to be made) to `cmd/dlv` to
      ensure we can auto-generate documentation for all commands from the
      newly provided script `scripts/gen-usage-docs.go`, which can be invoked
      via `go run scripts/gen-usage-docs.go`.
      
      Additionally, version has been split into its own package. This was a
      bit of housekeeping related to the changes made the `cmd/dlv`.
      63a66082