主要是lauch.json的编写
json
// filename: lauch.json
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "lldb",
"request": "launch",
"name": "macos",
"program": "${workspaceFolder}/zed",//修改,windows加.exe
"args": [
"log.txt",//如果需要参数
],
"cwd": "${workspaceFolder}"
//这里的意思是 zed log.txt
},
]
}
启动调试
- 但是我很少调试代码,所以一些调试知识我还需要补一下,比如说这zed是一个编辑器,具体怎么输入文件我不知道能不能实现
- 但是可以看到很多变量名和汇编代码