

Arm32进行远程调试 - 风佴
source link: https://www.cnblogs.com/guapilsh/p/16526100.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Arm 32bit Goland 远程调试
32位支持issue
Goland配置Go remote支持文档
https://mojotv.cn/go/golang-remote_debug
Delve
官方版本delve并不支持arm-32位,直接安装会提示架构不符合
架构判定文件为https://github.com/go-delve/delve/blob/master/pkg/proc/native/support_sentinel.go
个人水平有限,没有太明白这里的go build构建约束,欢迎大佬在评论区解读
注:第二行是老式的构建约束写法,大家看第一行就行了
// This file is used to detect build on unsupported GOOS/GOARCH combinations.
//go:build (!linux && !darwin && !windows && !freebsd) || (linux && !amd64 && !arm64 && !386) || (darwin && !amd64 && !arm64) || (windows && !amd64) || (freebsd && !amd64)
// +build !linux,!darwin,!windows,!freebsd linux,!amd64,!arm64,!386 darwin,!amd64,!arm64 windows,!amd64 freebsd,!amd64
package your_operating_system_and_architecture_combination_is_not_supported_by_delve
在issue下找到该仓库,实装后可以正常运行,
https://github.com/puppywang/delve
下载后进行安装make install
- Goland远程启动程序A
## goland 终端打印
GOROOT= #gosetup
GOPATH=/root/go #gosetup
/root/Env/go/bin/go build -i -o /root/**/executables-7agJx2Zna4/___11_linux demo/cmd/demo #gosetup
go: -i flag is deprecated
/root/****/executables-nq690aaBJS/___11_linux
## 查下进程id,后面用
ps axu|grep ___11_linux
获得`exe_PID`
- 远程终端启动
dlv
#PID 为程序A进程
dlv --listen=:5604 --headless=true --api-version=2 --check-go-version=false attach 获得`exe_PID`
//TODO 补充命令参数作用
- Goland配置Go remote
Host 远程部署IP
port 5604(上面)
然后即可进行远程调试
Recommend
-
95
-
67
编写gradle对象插件的实现方式有3种: 直接写在build.gradle中,这种方式简单省事,比较适合比较小的插件编写 在项目根目录下建立buildSrc目录 建立一个独立的...
-
32
因为正在开发一个项目,而这个项目使用到了 puppeteer ,其中有个功能是在 puppeteer 打开的chrome里打开多个 Tab ,并进行管理。 虽然 puppeteer 可以打开多个网站,但...
-
48
监控和调试功能是应用必备的属性之一,其手段也是多种多样。 一般地,我们可以通过:线上日志, zabbix, grafana, cat 等待系统做一问题留底,有问题及时报警,从而达到监控效果。 而对于应用的调试,我之前的文章也提...
-
45
网页在手机浏览器打开时,怎么调试?...
-
15
点击上方 “ 匠心零度 ” ,选择“
-
16
使用VS 2017进行Linux C/C++远程GDB调试同济大学 计算机科学与技术硕士在读既然你已经知道了makefile是咋回事了,又嫌麻烦每次都要用ftp传代码+开个终端测试那就不妨...
-
6
A script that fetches a ChromeOS image for ARM32 and extracts the Widevine binary, saving it in a compressed archive for use with Vivaldi · GitHub ...
-
3
Contributor ...
-
7
手把手教你搭建ARM32 QEMU环境 精选 原创 Linux随笔录 2024-02-04 14:...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK