如何以debug模式运行,可以打断点单步调试代码 #6809
Unanswered
akang943578
asked this question in
Q&A
Replies: 1 comment
-
不同编辑器有不同的配置,如果你用的是vscode你可以参考这个launch.json配置 {
// 使用 IntelliSense 了解相关属性。
// 悬停以查看现有属性的描述。
// 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Launch Package",
"type": "go",
"request": "launch",
"mode": "auto",
"program": "${workspaceFolder}/main.go",
"args": ["server"]
}
]
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
https://www.yuque.com/anwenya/alist/glqlhu
我根据这个文档进行源码编译运行,运行 ./alist server 启动服务。
我发现有debug和dev模式,但好像只是打多了一些日志,并不能单步调试。有办法单步调试吗?
Beta Was this translation helpful? Give feedback.
All reactions