Skip to content

Commit

Permalink
doc
Browse files Browse the repository at this point in the history
  • Loading branch information
TenderIronh committed Aug 8, 2022
1 parent 4a115fb commit 215feb8
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Binary file added doc/images/p2p-debug.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/images/release-debug.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/images/vs2022-remote-debug-attach.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions doc/remote-debug-vscpp.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ visual studio 2022
被调试端: win10
## 程序编译
一般远程调试我会选择release版本,然后将优化去掉即可,这样更接近真实版本。
![image](/image/release-debug.png)
![image](/doc/images/release-debug.png)

```
go install github.com/go-delve/delve/cmd/dlv@latest
Expand All @@ -25,11 +25,11 @@ C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\Remote Debug

Attach远程进程,按下Ctrl+Atl+P

![image](/image/vs2022-remote-debug-attach.png)
![image](/doc/images/vs2022-remote-debug-attach.png)


## 没有公网IP或不在同一个局域网,无法直连如何调试
https://openp2p.cn/注册一个用户获得token,两端安装一个客户端程序,可将被调试端的2345端口,通过p2p连接映射到调试端本地。
https://openp2p.cn/ 注册一个用户获得token,两端安装一个客户端程序,可将被调试端的2345端口,通过p2p连接映射到调试端本地。
p2p连接可通过web配置 https://github.com/openp2p-cn/openp2p/blob/master/README-ZH.md#%E5%BF%AB%E9%80%9F%E5%85%A5%E9%97%A8

也可以手动下载https://github.com/openp2p-cn/openp2p/releases 通过命令行手动配置
Expand All @@ -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)

可以顺利远程调试
```

0 comments on commit 215feb8

Please sign in to comment.