
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`.
28 lines
1.1 KiB
Markdown
28 lines
1.1 KiB
Markdown
# Installation on Windows
|
|
|
|
Please use the following steps to build and install Delve on Windows.
|
|
|
|
If you have a unix-y shell on Windows ([MSYS2](http://sourceforge.net/p/msys2/wiki/MSYS2%20installation/), [CYGWIN](https://cygwin.com/install.html) or other), follow the Linux installation directions.
|
|
|
|
From a standard Windows `cmd` shell, use the following steps:
|
|
|
|
## 1) Install MinGW
|
|
|
|
Install [MinGW-W64](http://sourceforge.net/projects/mingw-w64/) to get a GCC toolchain which is required to [build with CGO on Windows](https://github.com/golang/go/wiki/cgo#windows).
|
|
|
|
You should select:
|
|
|
|
* Version: Latest available (`5.3.0` at time of writing)
|
|
* Architecture: `x86_64`
|
|
* Threads: `posix` (shouldn't actually matter)
|
|
* Exception: `seh` (shouldn't actually matter)
|
|
* Build revision: Latest available (`0` at time of writing)
|
|
|
|
|
|
## 2) Make and install the `dlv` binary
|
|
```
|
|
$ mingw32-make install
|
|
```
|
|
|
|
Note: If you are using Go 1.5 you must set `GO15VENDOREXPERIMENT=1` before continuing. The `GO15VENDOREXPERIMENT` env var simply opts into the [Go 1.5 Vendor Experiment](https://docs.google.com/document/d/1Bz5-UB7g2uPBdOx-rw5t9MxJwkfpx90cqG9AFL0JAYo/).
|