使用vscode + lldb + codelldb调试可执行程序

主要是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
        },
    ]
}

启动调试

  1. 但是我很少调试代码,所以一些调试知识我还需要补一下,比如说这zed是一个编辑器,具体怎么输入文件我不知道能不能实现
  2. 但是可以看到很多变量名和汇编代码
相关推荐
从此不归路1 分钟前
FPGA 结构与 CAD 设计(第3章)下
ide·fpga开发
smileNicky44 分钟前
Lombok @Data 在 IDEA 中运行报错解决方案
java·ide·intellij-idea
好大哥呀1 小时前
C++ IDE
开发语言·c++·ide
OpenMiniServer1 小时前
AI + GitLab + VSCode:下一代开发工作流的革命性集成
人工智能·vscode·gitlab
滑稽的1 小时前
sublime merge汉化
编辑器·sublime text
dust_and_stars1 小时前
ubuntu24 安装vscode
ide·vscode·编辑器
向上的车轮2 小时前
如何选择Python IDE?
开发语言·ide·python
Destiny_where2 小时前
Claude VSCode插件版接入强大的GLM(无需登录注册claude code)
ide·人工智能·vscode·编辑器·claude code
猫头虎3 小时前
Claude Code 2026 年1月9日迎来大更新:Agent 能力增强(2.1.0 详解 + 升级指南)
ide·人工智能·macos·langchain·编辑器·aigc·ai编程
__雨夜星辰__3 小时前
VScode免密远程连接到Ubuntu(VMware17环境)虚拟机
ide·vscode·ubuntu