From d08564637d0223e8e3d21cfb6434376d77407cb4 Mon Sep 17 00:00:00 2001 From: fanatiicx <85956139+fanatiicx@users.noreply.github.com> Date: Wed, 6 Oct 2021 09:50:34 -0400 Subject: [PATCH] dlv: add page (#6697) --- pages/common/dlv.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 pages/common/dlv.md diff --git a/pages/common/dlv.md b/pages/common/dlv.md new file mode 100644 index 000000000..8e8671ecd --- /dev/null +++ b/pages/common/dlv.md @@ -0,0 +1,28 @@ +# dlv + +> Debugger for the Go programming language. +> More information: . + +- Compile and begin debugging the main package in the current directory (by default, with no arguments): + +`dlv debug` + +- Compile and begin debugging a specific package: + +`dlv debug {{package}} {{arguments}}` + +- Compile a test binary and begin debugging the compiled program: + +`dlv test` + +- Connect to a headless debug server: + +`dlv connect {{ip_address}}` + +- Attach to a running process and begin debugging: + +`div attach {{pid}}` + +- Compile and begin tracing a program: + +`dlv trace {{package}} --regexp '{{regular_expression}}'`