From 219e0ac047b789c4d54af188b360878c837b6377 Mon Sep 17 00:00:00 2001 From: "chen.yang" Date: Sun, 9 Jan 2022 16:48:37 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=85=85=E4=BC=A0=E5=85=A5=E8=B0=83?= =?UTF-8?q?=E8=AF=95=E5=8F=82=E6=95=B0.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: chen.yang --- .../Go/Debug/VSCode_调试_Golang_无法_Input_问题的解决.md | 2 +- .../Development/Language/Go/Package/Delve/Go_dlv_远程调试.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Software/Development/Language/Go/Debug/VSCode_调试_Golang_无法_Input_问题的解决.md b/Software/Development/Language/Go/Debug/VSCode_调试_Golang_无法_Input_问题的解决.md index 6128631..087bd1c 100644 --- a/Software/Development/Language/Go/Debug/VSCode_调试_Golang_无法_Input_问题的解决.md +++ b/Software/Development/Language/Go/Debug/VSCode_调试_Golang_无法_Input_问题的解决.md @@ -3,7 +3,7 @@ 解决办法就是不用 VSCode 的调试终端,在命令行里使用 DLV 开启服务,然后使用 VSCode 作为调试 Client 进行连接,则可在 DLV 调试命令行里输入 ```bash -dlv debug --headless --listen=:2345 --api-version=2 +dlv exec --headless --api-version=2 -l ":" -- ``` VSCode 的 launch.json 如下: diff --git a/Software/Development/Language/Go/Package/Delve/Go_dlv_远程调试.md b/Software/Development/Language/Go/Package/Delve/Go_dlv_远程调试.md index 398b50a..9fc52b6 100644 --- a/Software/Development/Language/Go/Package/Delve/Go_dlv_远程调试.md +++ b/Software/Development/Language/Go/Package/Delve/Go_dlv_远程调试.md @@ -1,7 +1,7 @@ # Go dlv 远程调试 ```bash -dlv exec --headless --api-version=2 -l ":" +dlv exec --headless --api-version=2 -l ":" -- ``` 之后用任意 Go IDE 连接即可进行远程调试。