vscode debug c program but cannt stop at breakpoint

remove pretty-printing in launch.json

bash 复制代码
{
    // 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": [
        
        {
            "name": "(gdb) Launch",
            "type": "cppdbg",
            "request": "launch",
            "program": "/home/prometheus/glibc-2.35/build/elf/ld.so",
            "args": ["/home/prometheus/shrinkwrap/shrinkwrap/emacs_zeta"],
            "stopAtEntry": false,
            "cwd": "${fileDirname}",
            "environment": [],
            "externalConsole": false,
            "MIMode": "gdb",
            "setupCommands": [
                {
                    "description": "Enable pretty-printing for gdb",
                    "text": "-enable-pretty-printing",
                    "ignoreFailures": true
                },
                {
                    "description": "Set Disassembly Flavor to Intel",
                    "text": "-gdb-set disassembly-flavor intel",
                    "ignoreFailures": true
                }
            ]
        }
        
    ]
}
bash 复制代码
referenced:
	https://sourceware.org/bugzilla/show_bug.cgi?id=28980
相关推荐
范纹杉想快点毕业29 分钟前
状态机设计与嵌入式系统开发完整指南从面向过程到面向对象,从理论到实践的全面解析
linux·服务器·数据库·c++·算法·mongodb·mfc
晓13131 小时前
第二章 【C语言篇:入门】 C 语言基础入门
c语言·算法
这周也會开心1 小时前
Redis与MySQL回写中的数据类型存储设计
数据库·redis·mysql
jiang_changsheng1 小时前
环境管理工具全景图与深度对比
java·c语言·开发语言·c++·python·r语言
Aaron_Wjf1 小时前
PG Vector测试
数据库·postgresql
Aaron_Wjf1 小时前
PG逻辑复制槽应用
数据库·postgresql
一碗面4211 小时前
SQL性能优化:让数据库飞起来
数据库·sql·性能优化
June bug1 小时前
【高频SQL基础版】排序和分组
数据库·sql
珠海西格1 小时前
光伏电站全景感知体系:数据采集与设备状态监测技术
大数据·运维·服务器·数据库·人工智能
爱基百客2 小时前
从人鼠到植物:SEdb 3.0数据库一站式检索与分析超级增强子调控网络
数据库·国自然·转录因子·组蛋白修饰·增强子