Skip to content

Commit

Permalink
content: include vim in list of editors that use delve
Browse files Browse the repository at this point in the history
See fatih/vim-go#1390

Change-Id: I59a45a207b68d08c53d4f16ff4240a28d145c1a1
Reviewed-on: https://go-review.googlesource.com/c/blog/+/169537
Reviewed-by: Austin Clements <[email protected]>
  • Loading branch information
mattn authored and andybons committed Mar 27, 2019
1 parent 6ad4468 commit 6bedf55
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/debugging-what-you-deploy.article
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ For Go 1.11 and 1.12, we focused on improving the debugging experience on optimi

* Debugging optimized code with Delve

[[https://github.com/go-delve/delve][Delve]] is a debugger for Go on x86 supporting both Linux and macOS. Delve is aware of goroutines and other Go features and provides one of the best Go debugging experiences. Delve is also the debugging engine behind [[https://www.jetbrains.com/go/][GoLand]] and [[https://code.visualstudio.com/][VS Code]].
[[https://github.com/go-delve/delve][Delve]] is a debugger for Go on x86 supporting both Linux and macOS. Delve is aware of goroutines and other Go features and provides one of the best Go debugging experiences. Delve is also the debugging engine behind [[https://www.jetbrains.com/go/][GoLand]], [[https://code.visualstudio.com/][VS Code]], and [[https://github.com/fatih/vim-go][Vim]].

Delve normally rebuilds the code it is debugging with `-gcflags`"all=-N`-l"`, which disables inlining and most optimizations. To debug optimized code with delve, first build the optimized binary, then use `dlv`exec`your_program` to debug it. Or, if you have a core file from a crash, you can examine it with `dlv`core`your_program`your_core`. With 1.12 and the latest Delve releases, you should be able to examine many variables, even in optimized binaries.

Expand Down

0 comments on commit 6bedf55

Please sign in to comment.