VSCode GDB 调试器中未加载映射和集

问题描述

每当我尝试在调试器中打开设置或映射内容时 - 它开始表现得很奇怪。

尝试打开地图或集合后 - 无法打开并永久加载可扩展值(矢量、地图、堆栈等)。

如果我尝试在地图或设置之前打开矢量 - 一切正常。


包括我的配置和照片

enter image description here

enter image description here

连接类型为 unordered_map<Node *,Edge *> connections;

enter image description here

lanch.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": [
    {
        "name": "g++ - Build and debug active file","type": "cppdbg","request": "launch","program": "${fileDirname}/${fileBasenameNoExtension}","args": [
            "<","test2.txt"
        ],"stopAtEntry": false,"cwd": "${workspaceFolder}","environment": [],"externalConsole": false,"MIMode": "gdb","setupCommands": [
            {
                "description": "Enable pretty-printing for gdb","text": "-enable-pretty-printing","ignoreFailures": true
            }
        ],"prelaunchTask": "C/C++: g++ build active file","miDebuggerPath": "/usr/bin/gdb"
    }
]

} 任务.json

{
"tasks": [
    {
        "type": "cppbuild","label": "C/C++: g++ build active file","command": "/usr/bin/g++","args": [
            "-g","${file}","-o","${fileDirname}/${fileBasenameNoExtension}"
        ],"options": {
            "cwd": "${workspaceFolder}"
        },"problemmatcher": [
            "$gcc"
        ],"group": {
            "kind": "build","isDefault": true
        },"detail": "Task generated by Debugger."
    }
],"version": "2.0.0"

}

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)