1. 25 9月, 2021 1 次提交
  2. 22 10月, 2020 1 次提交
  3. 10 3月, 2020 1 次提交
  4. 29 2月, 2020 1 次提交
  5. 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
  6. 15 2月, 2020 1 次提交
  7. 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
  8. 22 11月, 2018 1 次提交
  9. 14 7月, 2018 1 次提交
  10. 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
  11. 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
  12. 27 4月, 2018 1 次提交
  13. 14 4月, 2018 1 次提交