This commit is contained in:
TenderIronh
2022-08-08 23:19:47 +08:00
parent 4a115fb3fa
commit 215feb8721
4 changed files with 4 additions and 4 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

+3 -3
View File
@@ -4,7 +4,7 @@ visual studio 2022
被调试端: win10 被调试端: win10
## 程序编译 ## 程序编译
一般远程调试我会选择release版本,然后将优化去掉即可,这样更接近真实版本。 一般远程调试我会选择release版本,然后将优化去掉即可,这样更接近真实版本。
![image](/image/release-debug.png) ![image](/doc/images/release-debug.png)
``` ```
go install github.com/go-delve/delve/cmd/dlv@latest go install github.com/go-delve/delve/cmd/dlv@latest
@@ -25,7 +25,7 @@ C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\Remote Debug
Attach远程进程,按下Ctrl+Atl+P Attach远程进程,按下Ctrl+Atl+P
![image](/image/vs2022-remote-debug-attach.png) ![image](/doc/images/vs2022-remote-debug-attach.png)
## 没有公网IP或不在同一个局域网,无法直连如何调试 ## 没有公网IP或不在同一个局域网,无法直连如何调试
@@ -44,7 +44,7 @@ openp2p.exe -node YOUR-DEBUG-CLIENT -token YOUR-TOKEN -peernode YOUR-DEBUG-SERVE
#显示这条日志说明成功了 #显示这条日志说明成功了
``` ```
![image](/image/p2p-debug.png) ![image](/doc/images/p2p-debug.png)
可以顺利远程调试 可以顺利远程调试
``` ```