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
相关推荐
2501_948195344 小时前
RN for OpenHarmony英雄联盟助手App实战:主导航实现
数据库
Filotimo_4 小时前
N+1查询问题
数据库·oracle
你怎么知道我是队长4 小时前
C语言---头文件
c语言·开发语言
3有青年5 小时前
nios ii 中 ‘ALT_CPU_FREQ‘ could not be resolved的分析和解决办法
c语言·fpga开发
fenglllle6 小时前
spring-data-jpa saveall慢的原因
数据库·spring·hibernate
DarkAthena6 小时前
【GaussDB】执行索引跳扫时如果遇到该索引正在执行autovacuum,可能会导致数据查询不到
数据库·gaussdb
短剑重铸之日7 小时前
《7天学会Redis》Day 5 - Redis Cluster集群架构
数据库·redis·后端·缓存·架构·cluster
007php0077 小时前
mySQL里有2000w数据,Redis中只存20w的数据,如何保证Redis中的数据都是热点数据
数据库·redis·git·mysql·面试·职场和发展·php
lkbhua莱克瓦247 小时前
进阶-存储过程3-存储函数
java·数据库·sql·mysql·数据库优化·视图