Commit Graph

11 Commits

Author SHA1 Message Date
Oleksandr Redko
372552bf1f
Documentation: fix typo and grammar issues (#3291) 2023-02-28 14:52:52 +01:00
Hyang-Ah Hana Kim
9ed4ba0c49
Documentation: correct the flag name used to configure log destination (#2464)
The documentation mentions flags that do not exist. Replace them with
the existing, --log-dest flag.
2021-05-04 08:39:01 +02:00
Poh Zi How
9957bee78d
fix jsonrpc link in clienthowto (#2154)
* Update ClientHowto.md

* Update ClientHowto.md
2020-08-27 11:42:42 -07:00
Alessandro Arzilli
ab5713d3ec
Documentation: clarify API version status (#2068)
Clarify that the currently supported version of the API is 2 and that
the preferred method for selecting it is sending a SetApiVersion
command after connection.

Fixes #2066
2020-06-11 14:32:36 -07:00
Alessandro Arzilli
7afda8dbe0 proc,service: remove support for locspec '<fnname>:0' (#1588)
The location specified '<fnname>:0' could be used to set a breakpoint
on the entry point of the function (as opposed to locspec '<fnname>'
which sets it after the prologue).
Setting a breakpoint on an entry point is almost never useful, the way
this feature was implemented could cause it to be used accidentally and
there are other ways to accomplish the same task (by setting a
breakpoint on the PC address directly).
2019-06-25 13:50:05 -07:00
Alessandro Arzilli
48f1f51ef9 Miscellaneous logging improvements (#1525)
* *: 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
2019-03-27 14:58:36 -07:00
Derek Parker
4c9a72e486 *: Update import name to github.com/go-delve/delve
The repository is being switched from the personal account
github.com/derekparker/delve to the organization account
github.com/go-delve/delve. This patch updates imports and docs, while
preserving things which should not be changed such as my name in the
CHANGELOG and in TODO comments.
2019-01-04 19:43:13 +01:00
aarzilli
4fea15832f Documentation: mention that interfaces can also not be loaded
An interface with a children that has onlyAddr set to true was not
loaded due to the depth limit having been reached.
2018-09-18 13:10:50 -07:00
Ramya Achutha Rao
c8fcc3c5b2 Fix casing on delve 2018-07-23 10:12:05 -07:00
Ramya Achutha Rao
e6ce7d4120 Add docs on detaching 2018-07-23 10:12:05 -07:00
aarzilli
78377cad9d Documentation: better documentation menu, add guide to writing a client
* Adds some links to the more relevant documentation pages on the main
  README.md
* Adds a document informally describing how to write a client of delve
* Adds link to slides describing the architecture of delve
2018-07-02 09:35:27 -07:00