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
相关推荐
2601_9664917038 分钟前
C语言不难,但C语言从事的领域一般都很难
c语言·内存管理·系统编程·底层开发·学习路径
AndreaYYmm1 小时前
AF_PACKET 原始套接字抓包实战:手写一个 mini-tcpdump
c语言·网络协议
AAA修煤气灶刘哥2 小时前
数据搬到另一朵云,小红书的训练任务怎么接着读?
数据库·后端·架构
满小满m2 小时前
一次审计问答后的恢复点复盘:全备在,WAL 断了
数据库·postgresql·dba·数据库运维
选型参谋老文2 小时前
一次兼容性评审笔记:语法、行为、性能、工具链
数据库·数据库迁移·oracle兼容
جيون داد ناالام ميづ3 小时前
四、MyBatis 核心原理:拆解 7 大组件 + SQL 执行全流程
数据库·sql·mybatis
挖掘狂人3 小时前
如何进行MySQL调优
数据库·后端·mysql
旖旎夜光3 小时前
【C 语言】(二)模拟实现 strlen、strcpy、strcmp、strstr、memcpy、memmove
c语言·开发语言·笔记·学习
拾码录4 小时前
深入理解链表:动态数据结构的基石
c语言·数据结构·链表