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 连接即可进行远程调试。