MAC M1 配置C++调试环境launch.json文件报错

MAC M1 配置C++调试环境报错。安装了CodeLLDB,将launch.json里的type改为“lldb”后报错

launch.json

"version": "0.2.0",
            "configurations": [
                {
                    "name": "clang++ - Build and debug active file",
                    "type": "lldb",
                    "request": "launch",
                    "program": "./benchncnn",
                    "stopAtEntry": true,
                    "cwd": "/Users/oldpan/deps/ncnn/build_debug/benchmark/",
                    "environment": [],
                    "externalConsole": false,
                    "MIMode": "lldb",
                    "targetArchitecture": "arm64"
                  }
            ]

报错结果如下

img


看了很多帖子都找不到解决方案

你看看这个链接【M1 McacBook 配置 VS Code debug C++配置(CodeLLDB)】,对你是否有所帮助:https://zhuanlan.zhihu.com/p/463083502

不知道对您有帮助否:
https://blog.csdn.net/qq_40970795/article/details/120488108?ops_request_misc=&request_id=&biz_id=102&utm_term=MAC%20M1%20%E9%85%8D%E7%BD%AEC++%E8%B0%83%E8%AF%95%E7%8E%AF%E5%A2%83launch.json%E6%96%87%E4%BB%B6%E6%8A%A5&utm_medium=distribute.pc_search_result.none-task-blog-2~all~sobaiduweb~default-0-120488108.142^v59^js_top,201^v3^control_1&spm=1018.2226.3001.4449.