microsoft / vscode-cpptools

Official repository for the Microsoft C/C++ extension for VS Code.
Other
5.51k stars 1.55k forks source link

GDB doesn't work correctly #7155

Closed ZavierYan closed 3 years ago

ZavierYan commented 3 years ago

Type: Debugger

Describe the bug

To Reproduce code sample :

#include<cstdio>
int main(){
    printf("test\n");
    return 0;
}

launch.json

{
        "name": "(gdb)Launch",
        "type": "cppdbg",
        "request": "launch",
        "program": "${fileDirname}\\${fileBasenameNoExtension}.exe",
        "args": [],
        "stopAtEntry": false,
        "cwd": "${workspaceFolder}",
        "environment": [],
        "externalConsole": false,
        "MIMode": "gdb",
        "miDebuggerPath": "gdb.exe",
        "setupCommands": [
            {
                "description": "为 gdb 启用整齐打印",
                "text": "-enable-pretty-printing",
                "ignoreFailures": true
            }
        ],
        "logging": { "engineLogging": true, "trace": true, "traceResponse": true }
}

task.json

{
    "type": "process",
    "label": "(g++)Build",
    "command": "g++.exe",
    "args": [
        "-g",
        "${file}",
        "-o",
        "${fileDirname}\\${fileBasenameNoExtension}.exe",
        "-Wall"
    ],
    "problemMatcher": [
        "$gcc"
    ],
    "group": {
        "kind": "build",
        "isDefault": true
    }
}

Steps to reproduce the behavior:

  1. Build
  2. Start debugging

log from debug console:

--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (88) LaunchOptions{\"name\":\"(gdb)Launch\",\"type\":\"cppdbg\",\"request\":\"launch\",\"program\":\"d:\\\\Users\\\\Zavier\\\\Documents\\\\Program\\\\C++\\\\test.exe\",\"args\":[],\"stopAtEntry\":false,\"cwd\":\"D:\\\\Users\\\\Zavier\\\\Documents\\\\Program\\\\C++\",\"environment\":[],\"externalConsole\":false,\"MIMode\":\"gdb\",\"miDebuggerPath\":\"gdb.exe\",\"setupCommands\":[{\"description\":\"为 gdb 启用整齐打印\",\"text\":\"-enable-pretty-printing\",\"ignoreFailures\":true}],\"logging\":{\"engineLogging\":true,\"trace\":true,\"traceResponse\":true},\"__configurationTarget\":5,\"__sessionId\":\"0280fd95-b85d-43de-8692-e36a217cde3b\"}\r\n"},"seq":2}
1: (88) LaunchOptions{"name":"(gdb)Launch","type":"cppdbg","request":"launch","program":"d:\\Users\\Zavier\\Documents\\Program\\C++\\test.exe","args":[],"stopAtEntry":false,"cwd":"D:\\Users\\Zavier\\Documents\\Program\\C++","environment":[],"externalConsole":false,"MIMode":"gdb","miDebuggerPath":"gdb.exe","setupCommands":[{"description":"为 gdb 启用整齐打印","text":"-enable-pretty-printing","ignoreFailures":true}],"logging":{"engineLogging":true,"trace":true,"traceResponse":true},"__configurationTarget":5,"__sessionId":"0280fd95-b85d-43de-8692-e36a217cde3b"}
--> C (runInTerminal-4): {"type":"request","command":"runInTerminal","arguments":{"kind":"integrated","title":"cppdbg: test.exe","cwd":"","args":["c:\\Users\\Zavier\\.vscode\\extensions\\ms-vscode.cpptools-1.2.2\\debugAdapters\\bin\\WindowsDebugLauncher.exe","--stdin=Microsoft-MIEngine-In-e5w5roly.pax","--stdout=Microsoft-MIEngine-Out-a0k1kfy1.ojk","--stderr=Microsoft-MIEngine-Error-tz2cdcqq.v3n","--pid=Microsoft-MIEngine-Pid-ktl40qwl.qyi","--dbgExe=D:\\DEV\\msys64\\usr\\bin\\gdb.exe","--interpreter=mi"],"env":{}},"seq":4}
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (169) Wait for connection completion.\r\n"},"seq":6}
1: (169) Wait for connection completion.
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (617) ->=thread-group-added,id=\"i1\"\r\n"},"seq":8}
1: (617) ->=thread-group-added,id="i1"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (618) ->~\"GNU gdb (GDB) 9.2\\n\"\r\n"},"seq":10}
1: (618) ->~"GNU gdb (GDB) 9.2\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (618) ->~\"Copyright (C) 2020 Free Software Foundation, Inc.\\n\"\r\n"},"seq":12}
1: (618) ->~"Copyright (C) 2020 Free Software Foundation, Inc.\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (619) ->~\"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\\nThis is free software: you are free to change and redistribute it.\\nThere is NO WARRANTY, to the extent permitted by law.\"\r\n"},"seq":14}
1: (619) ->~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law."
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (619) ->~\"\\nType \\\"show copying\\\" and \\\"show warranty\\\" for details.\\n\"\r\n"},"seq":16}
1: (619) ->~"\nType \"show copying\" and \"show warranty\" for details.\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (619) ->~\"This GDB was configured as \\\"x86_64-pc-msys\\\".\\n\"\r\n"},"seq":18}
1: (619) ->~"This GDB was configured as \"x86_64-pc-msys\".\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (619) ->~\"Type \\\"show configuration\\\" for configuration details.\\n\"\r\n"},"seq":20}
1: (619) ->~"Type \"show configuration\" for configuration details.\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (619) ->~\"For bug reporting instructions, please see:\\n\"\r\n"},"seq":22}
1: (619) ->~"For bug reporting instructions, please see:\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (619) ->~\"<http://www.gnu.org/software/gdb/bugs/>.\\n\"\r\n"},"seq":24}
1: (619) ->~"<http://www.gnu.org/software/gdb/bugs/>.\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (619) ->~\"Find the GDB manual and other documentation resources online at:\\n    <http://www.gnu.org/software/gdb/documentation/>.\"\r\n"},"seq":26}
1: (619) ->~"Find the GDB manual and other documentation resources online at:\n    <http://www.gnu.org/software/gdb/documentation/>."
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (619) ->~\"\\n\\n\"\r\n"},"seq":28}
1: (619) ->~"\n\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (619) ->~\"For help, type \\\"help\\\".\\n\"\r\n"},"seq":30}
1: (619) ->~"For help, type \"help\".\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (619) ->~\"Type \\\"apropos word\\\" to search for commands related to \\\"word\\\".\\n\"\r\n"},"seq":32}
1: (619) ->~"Type \"apropos word\" to search for commands related to \"word\".\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (621) ->&\"Traceback (most recent call last):\\n\"\r\n"},"seq":34}
1: (621) ->&"Traceback (most recent call last):\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (621) ->&\"  File \\\"<string>\\\", line 3, in <module>\\n\"\r\n"},"seq":36}
1: (621) ->&"  File \"<string>\", line 3, in <module>\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (625) ->&\"ModuleNotFoundError: No module named 'libstdcxx'\\n\"\r\n"},"seq":38}
1: (625) ->&"ModuleNotFoundError: No module named 'libstdcxx'\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (626) ->&\"/etc/gdbinit:6: Error in sourced command file:\\n\"\r\n"},"seq":40}
1: (626) ->&"/etc/gdbinit:6: Error in sourced command file:\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (626) ->&\"Error while executing Python code.\\n\"\r\n"},"seq":42}
1: (626) ->&"Error while executing Python code.\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (627) ->(gdb)\r\n"},"seq":44}
1: (627) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (631) <-1001-gdb-set target-async on\r\n"},"seq":46}
1: (631) <-1001-gdb-set target-async on
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (633) ->1001^done\r\n"},"seq":48}
1: (633) ->1001^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (633) ->(gdb)\r\n"},"seq":50}
1: (633) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (633) ->&\"\\n\"\r\n"},"seq":52}
1: (633) ->&"\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (633) ->^done\r\n"},"seq":54}
1: (633) ->^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (633) ->(gdb)\r\n"},"seq":56}
1: (633) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (634) 1001: elapsed time 4\r\n"},"seq":58}
1: (634) 1001: elapsed time 4
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (641) <-1002-enable-pretty-printing\r\n"},"seq":60}
1: (641) <-1002-enable-pretty-printing
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (643) ->1002^done\r\n"},"seq":62}
1: (643) ->1002^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (643) 1002: elapsed time 1\r\n"},"seq":64}
1: (643) 1002: elapsed time 1
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (643) ->(gdb)\r\n"},"seq":66}
1: (643) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (643) ->&\"\\n\"\r\n"},"seq":68}
1: (643) ->&"\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (643) ->^done\r\n"},"seq":70}
1: (643) ->^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (643) <-1003-interpreter-exec console \"set pagination off\"\r\n"},"seq":72}
1: (643) <-1003-interpreter-exec console "set pagination off"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (644) ->(gdb)\r\n"},"seq":74}
1: (644) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (645) ->=cmd-param-changed,param=\"pagination\",value=\"off\"\r\n"},"seq":76}
1: (645) ->=cmd-param-changed,param="pagination",value="off"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (645) ->1003^done\r\n"},"seq":78}
1: (645) ->1003^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (645) ->(gdb)\r\n"},"seq":80}
1: (645) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (645) ->&\"\\n\"\r\n"},"seq":82}
1: (645) ->&"\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (645) ->^done\r\n"},"seq":84}
1: (645) ->^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (645) ->(gdb)\r\n"},"seq":86}
1: (645) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (645) 1003: elapsed time 1\r\n"},"seq":88}
1: (645) 1003: elapsed time 1
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (645) <-1004-gdb-set auto-solib-add on\r\n"},"seq":90}
1: (645) <-1004-gdb-set auto-solib-add on
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (647) ->1004^done\r\n"},"seq":92}
1: (647) ->1004^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (647) 1004: elapsed time 2\r\n"},"seq":94}
1: (647) 1004: elapsed time 2
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (647) <-1005-gdb-set solib-search-path d:\\\\Users\\\\Zavier\\\\Documents\\\\Program\\\\C++;\r\n"},"seq":96}
1: (647) <-1005-gdb-set solib-search-path d:\\Users\\Zavier\\Documents\\Program\\C++;
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (647) ->(gdb)\r\n"},"seq":98}
1: (647) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (647) ->&\"\\n\"\r\n"},"seq":100}
1: (647) ->&"\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (647) ->^done\r\n"},"seq":102}
1: (647) ->^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (647) ->(gdb)\r\n"},"seq":104}
1: (647) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (649) ->1005^done\r\n"},"seq":106}
1: (649) ->1005^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (649) 1005: elapsed time 1\r\n"},"seq":108}
1: (649) 1005: elapsed time 1
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (649) <-1006-environment-cd D:\\\\Users\\\\Zavier\\\\Documents\\\\Program\\\\C++\r\n"},"seq":110}
1: (649) <-1006-environment-cd D:\\Users\\Zavier\\Documents\\Program\\C++
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (649) ->(gdb)\r\n"},"seq":112}
1: (649) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (649) ->&\"\\n\"\r\n"},"seq":114}
1: (649) ->&"\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (649) ->^done\r\n"},"seq":116}
1: (649) ->^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (650) ->(gdb)\r\n"},"seq":118}
1: (650) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (651) ->1006^done\r\n"},"seq":120}
1: (651) ->1006^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (651) 1006: elapsed time 1\r\n"},"seq":122}
1: (651) 1006: elapsed time 1
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (651) ->(gdb)\r\n"},"seq":124}
1: (651) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (651) ->&\"\\n\"\r\n"},"seq":126}
1: (651) ->&"\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (652) ->^done\r\n"},"seq":128}
1: (652) ->^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (652) ->(gdb)\r\n"},"seq":130}
1: (652) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (654) <-1007-interpreter-exec console \"show configuration\"\r\n"},"seq":132}
1: (654) <-1007-interpreter-exec console "show configuration"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (655) ->~\"This GDB was configured as follows:\\n   configure --host=\"\r\n"},"seq":134}
1: (655) ->~"This GDB was configured as follows:\n   configure --host="
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (655) ->~\"x86_64-pc-msys --target=x86_64-pc-msys\\n\"\r\n"},"seq":136}
1: (655) ->~"x86_64-pc-msys --target=x86_64-pc-msys\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (655) ->~\"             --with-auto-load-dir=$debugdir:$datadir/auto-load\\n             --with-auto-load-safe-path=\"\r\n"},"seq":138}
1: (655) ->~"             --with-auto-load-dir=$debugdir:$datadir/auto-load\n             --with-auto-load-safe-path="
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (655) ->~\"$debugdir:$datadir/auto-load\\n\"\r\n"},"seq":140}
1: (655) ->~"$debugdir:$datadir/auto-load\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (655) ->~\"             --with-expat\\n\"\r\n"},"seq":142}
1: (655) ->~"             --with-expat\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (655) ->~\"             --with-gdb-datadir=/usr/share/gdb (relocatable)\\n\"\r\n"},"seq":144}
1: (655) ->~"             --with-gdb-datadir=/usr/share/gdb (relocatable)\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (655) ->~\"             --with-jit-reader-dir=/usr/lib/gdb (relocatable)\\n\"\r\n"},"seq":146}
1: (655) ->~"             --with-jit-reader-dir=/usr/lib/gdb (relocatable)\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (655) ->~\"             --without-libunwind-ia64\\n\"\r\n"},"seq":148}
1: (655) ->~"             --without-libunwind-ia64\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (655) ->~\"             --with-lzma\\n\"\r\n"},"seq":150}
1: (655) ->~"             --with-lzma\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (655) ->~\"             --without-babeltrace\\n\\t\\t\"\r\n"},"seq":152}
1: (655) ->~"             --without-babeltrace\n\t\t"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (655) ->~\"             --without-intel-pt\\n\"\r\n"},"seq":154}
1: (655) ->~"             --without-intel-pt\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (656) ->~\"             --with-mpfr\\n\"\r\n"},"seq":156}
1: (656) ->~"             --with-mpfr\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (656) ->~\"             --without-xxhash\\n\"\r\n"},"seq":158}
1: (656) ->~"             --without-xxhash\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (656) ->~\"             --with-python=/usr (relocatable)\\n\"\r\n"},"seq":160}
1: (656) ->~"             --with-python=/usr (relocatable)\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (656) ->~\"             --without-guile\\n\"\r\n"},"seq":162}
1: (656) ->~"             --without-guile\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (656) ->~\"             --disable-source-highlight\\n\"\r\n"},"seq":164}
1: (656) ->~"             --disable-source-highlight\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (656) ->~\"             --with-separate-debug-dir=/usr/lib/debug (relocatable)\\n\"\r\n"},"seq":166}
1: (656) ->~"             --with-separate-debug-dir=/usr/lib/debug (relocatable)\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (656) ->~\"             --with-system-gdbinit=/etc/gdbinit\\n\"\r\n"},"seq":168}
1: (656) ->~"             --with-system-gdbinit=/etc/gdbinit\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (656) ->~\"\\n(\\\"Relocatable\\\" means the directory can be moved with the GDB installation\\ntree, and GDB will still find it.)\\n\"\r\n"},"seq":170}
1: (656) ->~"\n(\"Relocatable\" means the directory can be moved with the GDB installation\ntree, and GDB will still find it.)\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (656) ->1007^done\r\n"},"seq":172}
1: (656) ->1007^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (656) 1007: elapsed time 2\r\n"},"seq":174}
1: (656) 1007: elapsed time 2
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (656) ->(gdb)\r\n"},"seq":176}
1: (656) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (656) ->&\"\\n\"\r\n"},"seq":178}
1: (656) ->&"\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (656) ->^done\r\n"},"seq":180}
1: (656) ->^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (656) ->(gdb)\r\n"},"seq":182}
1: (656) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"telemetry","output":"VS/Diagnostics/Debugger/MIEngine/WindowsRuntime","data":{"VS.Diagnostics.Debugger.MIEngine.WindowsRuntime":"MinGW"}},"seq":184}
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (657) <-1008-file-exec-and-symbols d:\\\\Users\\\\Zavier\\\\Documents\\\\Program\\\\C++\\\\test.exe\r\n"},"seq":186}
1: (657) <-1008-file-exec-and-symbols d:\\Users\\Zavier\\Documents\\Program\\C++\\test.exe
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (675) ->1008^done\r\n"},"seq":188}
1: (675) ->1008^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (675) 1008: elapsed time 18\r\n"},"seq":190}
1: (675) 1008: elapsed time 18
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (676) <-1009-interpreter-exec console \"show architecture\"\r\n"},"seq":192}
1: (676) <-1009-interpreter-exec console "show architecture"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (676) ->(gdb)\r\n"},"seq":194}
1: (676) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (676) ->&\"\\n\"\r\n"},"seq":196}
1: (676) ->&"\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (676) ->^done\r\n"},"seq":198}
1: (676) ->^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (676) ->(gdb)\r\n"},"seq":200}
1: (676) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (677) ->~\"The target architecture is set automatically (currently i386:x86-64)\\n\"\r\n"},"seq":202}
1: (677) ->~"The target architecture is set automatically (currently i386:x86-64)\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (677) ->1009^done\r\n"},"seq":204}
1: (677) ->1009^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (677) 1009: elapsed time 0\r\n"},"seq":206}
1: (677) 1009: elapsed time 0
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (677) ->(gdb)\r\n"},"seq":208}
1: (677) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (678) ->&\"\\n\"\r\n"},"seq":210}
1: (678) ->&"\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (678) ->^done\r\n"},"seq":212}
1: (678) ->^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (678) ->(gdb)\r\n"},"seq":214}
1: (678) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (678) <-1010-exec-arguments 2>CON 1>CON <CON\r\n"},"seq":216}
1: (678) <-1010-exec-arguments 2>CON 1>CON <CON
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (679) ->1010^done\r\n"},"seq":218}
1: (679) ->1010^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (679) ->(gdb)\r\n"},"seq":220}
1: (679) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (679) ->&\"\\n\"\r\n"},"seq":222}
1: (679) ->&"\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (679) ->^done\r\n"},"seq":224}
1: (679) ->^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (679) ->(gdb)\r\n"},"seq":226}
1: (679) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (679) 1010: elapsed time 1\r\n"},"seq":228}
1: (679) 1010: elapsed time 1
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (680) <-1011-break-insert -f main\r\n"},"seq":230}
1: (680) <-1011-break-insert -f main
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (682) ->1011^done,bkpt={number=\"1\",type=\"breakpoint\",disp=\"keep\",enabled=\"y\",addr=\"0x000000014000154d\",func=\"main()\",file=\"D:\\\\Users\\\\Zavier\\\\Documents\\\\Program\\\\C++\\\\test.cpp\",fullname=\"/d/Users/Zavier/Documents/Program/C++/test.cpp\",line=\"5\",thread-groups=[\"i1\"],times=\"0\",original-location=\"main\"}\r\n"},"seq":232}
1: (682) ->1011^done,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x000000014000154d",func="main()",file="D:\\Users\\Zavier\\Documents\\Program\\C++\\test.cpp",fullname="/d/Users/Zavier/Documents/Program/C++/test.cpp",line="5",thread-groups=["i1"],times="0",original-location="main"}
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (682) ->(gdb)\r\n"},"seq":234}
1: (682) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (682) ->&\"\\n\"\r\n"},"seq":236}
1: (682) ->&"\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (682) ->^done\r\n"},"seq":238}
1: (682) ->^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (683) ->(gdb)\r\n"},"seq":240}
1: (683) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (686) 1011: elapsed time 6\r\n"},"seq":242}
1: (686) 1011: elapsed time 6
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (691) Send Event AD7EngineCreateEvent\r\n"},"seq":244}
1: (691) Send Event AD7EngineCreateEvent
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (694) Send Event AD7ProgramCreateEvent\r\n"},"seq":246}
1: (694) Send Event AD7ProgramCreateEvent
--> E (output): {"type":"event","event":"output","body":{"category":"telemetry","output":"VS/Diagnostics/Debugger/Launch","data":{"VS.Diagnostics.Debugger.ImplementationName":"Microsoft.MIDebugEngine","VS.Diagnostics.Debugger.EngineVersion":"16.5.11030.1","VS.Diagnostics.Debugger.HostVersion":"16.5.11030.1","VS.Diagnostics.Debugger.AdapterId":"cppdbg","VS.Diagnostics.Debugger.Launch.Duration":628,"VS.Diagnostics.Debugger.MIMode":"gdb"}},"seq":248}
--> R (launch-2): {"type":"response","request_seq":2,"success":true,"command":"launch","body":{},"seq":250}
--> E (initialized): {"type":"event","event":"initialized","body":{},"seq":252}
<--   R (runInTerminal-4) [544 ms]: {"type":"response","seq":3,"command":"runInTerminal","request_seq":4,"success":true,"body":{"shellProcessId":19448}}
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (714) ShellPid=19716\r\n"},"seq":255}
1: (714) ShellPid=19716
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (723) DebuggerPid=20404\r\n"},"seq":257}
1: (723) DebuggerPid=20404
<--   C (setFunctionBreakpoints-4): {"command":"setFunctionBreakpoints","arguments":{"breakpoints":[]},"type":"request","seq":4}
--> R (setFunctionBreakpoints-4): {"type":"response","request_seq":4,"success":true,"command":"setFunctionBreakpoints","body":{"breakpoints":[]},"seq":260}
<--   C (configurationDone-5): {"command":"configurationDone","type":"request","seq":5}
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (753) Send Event AD7LoadCompleteEvent\r\n"},"seq":264}
1: (753) Send Event AD7LoadCompleteEvent
--> R (configurationDone-5): {"type":"response","request_seq":5,"success":true,"command":"configurationDone","body":{},"seq":263}
--> E (output): {"type":"event","event":"output","body":{"category":"stdout","output":"=thread-group-added,id=\"i1\"\nGNU gdb (GDB) 9.2\nCopyright (C) 2020 Free Software Foundation, Inc.\nLicense GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law.\nType \"show copying\" and \"show warranty\" for details.\nThis GDB was configured as \"x86_64-pc-msys\".\nType \"show configuration\" for configuration details.\nFor bug reporting instructions, please see:\n<http://www.gnu.org/software/gdb/bugs/>.\nFind the GDB manual and other documentation resources online at:\n    <http://www.gnu.org/software/gdb/documentation/>.\n\nFor help, type \"help\".\nType \"apropos word\" to search for commands related to \"word\".\nWarning: Debuggee TargetArchitecture not detected, assuming x86_64.\n=cmd-param-changed,param=\"pagination\",value=\"off\"\n"},"seq":267}
=thread-group-added,id="i1"
GNU gdb (GDB) 9.2
Copyright (C) 2020 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-pc-msys".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word".
Warning: Debuggee TargetArchitecture not detected, assuming x86_64.
=cmd-param-changed,param="pagination",value="off"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (759) <-1012-exec-run\r\n"},"seq":269}
1: (759) <-1012-exec-run
<--   C (threads-6): {"command":"threads","type":"request","seq":6}
--> R (threads-6): {"type":"response","request_seq":6,"success":true,"command":"threads","body":{"threads":[]},"seq":272}
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (800) ->=thread-group-started,id=\"i1\",pid=\"10960\"\r\n"},"seq":274}
1: (800) ->=thread-group-started,id="i1",pid="10960"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (800) ->=thread-created,id=\"1\",group-id=\"i1\"\r\n"},"seq":276}
1: (800) ->=thread-created,id="1",group-id="i1"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (804) <-1013-thread-info 1\r\n"},"seq":278}
1: (804) <-1013-thread-info 1
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (805) ->=thread-created,id=\"2\",group-id=\"i1\"\r\n"},"seq":280}
1: (805) ->=thread-created,id="2",group-id="i1"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (805) ->~\"[New Thread 10960.0x12a4]\\n\"\r\n"},"seq":282}
1: (805) ->~"[New Thread 10960.0x12a4]\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (806) <-1014-thread-info 2\r\n"},"seq":284}
1: (806) <-1014-thread-info 2
--> E (output): {"type":"event","event":"output","body":{"category":"stdout","output":"[New Thread 10960.0x12a4]\n"},"seq":286}
[New Thread 10960.0x12a4]
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (811) ->=library-loaded,id=\"/c/Windows/SYSTEM32/ntdll.dll\",target-name=\"/c/Windows/SYSTEM32/ntdll.dll\",host-name=\"/c/Windows/SYSTEM32/ntdll.dll\",symbols-loaded=\"0\",thread-group=\"i1\",ranges=[{from=\"0x00007ffd51401000\",to=\"0x00007ffd515ef528\"}]\r\n"},"seq":288}
1: (811) ->=library-loaded,id="/c/Windows/SYSTEM32/ntdll.dll",target-name="/c/Windows/SYSTEM32/ntdll.dll",host-name="/c/Windows/SYSTEM32/ntdll.dll",symbols-loaded="0",thread-group="i1",ranges=[{from="0x00007ffd51401000",to="0x00007ffd515ef528"}]
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (812) ->=library-loaded,id=\"/c/Windows/System32/KERNEL32.DLL\",target-name=\"/c/Windows/System32/KERNEL32.DLL\",host-name=\"/c/Windows/System32/KERNEL32.DLL\",symbols-loaded=\"0\",thread-group=\"i1\",ranges=[{from=\"0x00007ffd4ff01000\",to=\"0x00007ffd4ffb124c\"}]\r\n"},"seq":290}
1: (812) ->=library-loaded,id="/c/Windows/System32/KERNEL32.DLL",target-name="/c/Windows/System32/KERNEL32.DLL",host-name="/c/Windows/System32/KERNEL32.DLL",symbols-loaded="0",thread-group="i1",ranges=[{from="0x00007ffd4ff01000",to="0x00007ffd4ffb124c"}]
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (813) ->=library-loaded,id=\"/c/Windows/System32/KERNELBASE.dll\",target-name=\"/c/Windows/System32/KERNELBASE.dll\",host-name=\"/c/Windows/System32/KERNELBASE.dll\",symbols-loaded=\"0\",thread-group=\"i1\",ranges=[{from=\"0x00007ffd4e451000\",to=\"0x00007ffd4e6f47f8\"}]\r\n"},"seq":292}
1: (813) ->=library-loaded,id="/c/Windows/System32/KERNELBASE.dll",target-name="/c/Windows/System32/KERNELBASE.dll",host-name="/c/Windows/System32/KERNELBASE.dll",symbols-loaded="0",thread-group="i1",ranges=[{from="0x00007ffd4e451000",to="0x00007ffd4e6f47f8"}]
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (814) ->=library-loaded,id=\"/c/Windows/SYSTEM32/apphelp.dll\",target-name=\"/c/Windows/SYSTEM32/apphelp.dll\",host-name=\"/c/Windows/SYSTEM32/apphelp.dll\",symbols-loaded=\"0\",thread-group=\"i1\",ranges=[{from=\"0x00007ffd4bc41000\",to=\"0x00007ffd4bcce6e8\"}]\r\n"},"seq":294}
1: (814) ->=library-loaded,id="/c/Windows/SYSTEM32/apphelp.dll",target-name="/c/Windows/SYSTEM32/apphelp.dll",host-name="/c/Windows/SYSTEM32/apphelp.dll",symbols-loaded="0",thread-group="i1",ranges=[{from="0x00007ffd4bc41000",to="0x00007ffd4bcce6e8"}]
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (814) ->=library-loaded,id=\"/c/Windows/System32/msvcrt.dll\",target-name=\"/c/Windows/System32/msvcrt.dll\",host-name=\"/c/Windows/System32/msvcrt.dll\",symbols-loaded=\"0\",thread-group=\"i1\",ranges=[{from=\"0x00007ffd4fe61000\",to=\"0x00007ffd4fefd4a4\"}]\r\n"},"seq":296}
1: (814) ->=library-loaded,id="/c/Windows/System32/msvcrt.dll",target-name="/c/Windows/System32/msvcrt.dll",host-name="/c/Windows/System32/msvcrt.dll",symbols-loaded="0",thread-group="i1",ranges=[{from="0x00007ffd4fe61000",to="0x00007ffd4fefd4a4"}]
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (870) ->=breakpoint-modified,bkpt={number=\"1\",type=\"breakpoint\",disp=\"keep\",enabled=\"y\",addr=\"0x0000000140001548\",func=\"main()\",file=\"D:\\\\Users\\\\Zavier\\\\Documents\\\\Program\\\\C++\\\\test.cpp\",fullname=\"/d/Users/Zavier/Documents/Program/C++/test.cpp\",line=\"3\",thread-groups=[\"i1\"],times=\"0\",original-location=\"main\"}\r\n"},"seq":298}
1: (870) ->=breakpoint-modified,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x0000000140001548",func="main()",file="D:\\Users\\Zavier\\Documents\\Program\\C++\\test.cpp",fullname="/d/Users/Zavier/Documents/Program/C++/test.cpp",line="3",thread-groups=["i1"],times="0",original-location="main"}
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (870) ->1012^running\r\n"},"seq":300}
1: (870) ->1012^running
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (870) ->*running,thread-id=\"all\"\r\n"},"seq":302}
1: (870) ->*running,thread-id="all"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (870) ->(gdb)\r\n"},"seq":304}
1: (870) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (870) ->&\"Warning:\\n\"\r\n"},"seq":306}
1: (870) ->&"Warning:\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (870) ->&\"Cannot insert breakpoint 1.\\n\"\r\n"},"seq":308}
1: (870) ->&"Cannot insert breakpoint 1.\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (870) ->&\"Cannot access memory at address 0x140001548\\n\"\r\n"},"seq":310}
1: (870) ->&"Cannot access memory at address 0x140001548\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (870) ->&\"\\n\"\r\n"},"seq":312}
1: (870) ->&"\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (870) ->1012^error,msg=\"Command aborted.\"\r\n"},"seq":314}
1: (870) ->1012^error,msg="Command aborted."
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (870) ->(gdb)\r\n"},"seq":316}
1: (870) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (870) ->&\"\\n\"\r\n"},"seq":318}
1: (870) ->&"\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (870) ->^done\r\n"},"seq":320}
1: (870) ->^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (871) ->(gdb)\r\n"},"seq":322}
1: (871) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (871) ->1013^done,threads=[{id=\"1\",target-id=\"Thread 10960.0x43b8\",frame={level=\"0\",addr=\"0x00007ffd514d0fad\",func=\"ntdll!LdrInitShimEngineDynamic\",args=[],from=\"/c/Windows/SYSTEM32/ntdll.dll\",arch=\"i386:x86-64\"},state=\"stopped\"}]\r\n"},"seq":324}
1: (871) ->1013^done,threads=[{id="1",target-id="Thread 10960.0x43b8",frame={level="0",addr="0x00007ffd514d0fad",func="ntdll!LdrInitShimEngineDynamic",args=[],from="/c/Windows/SYSTEM32/ntdll.dll",arch="i386:x86-64"},state="stopped"}]
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (871) ->(gdb)\r\n"},"seq":326}
1: (871) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (871) ->&\"\\n\"\r\n"},"seq":328}
1: (871) ->&"\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (871) ->^done\r\n"},"seq":330}
1: (871) ->^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (871) ->(gdb)\r\n"},"seq":332}
1: (871) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (871) ->1014^done,threads=[{id=\"2\",target-id=\"Thread 10960.0x12a4\",frame={level=\"0\",addr=\"0x00007ffd514a0724\",func=\"ntdll!ZwWaitForWorkViaWorkerFactory\",args=[],from=\"/c/Windows/SYSTEM32/ntdll.dll\",arch=\"i386:x86-64\"},state=\"stopped\"}]\r\n"},"seq":334}
1: (871) ->1014^done,threads=[{id="2",target-id="Thread 10960.0x12a4",frame={level="0",addr="0x00007ffd514a0724",func="ntdll!ZwWaitForWorkViaWorkerFactory",args=[],from="/c/Windows/SYSTEM32/ntdll.dll",arch="i386:x86-64"},state="stopped"}]
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (871) ->(gdb)\r\n"},"seq":336}
1: (871) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (871) ->&\"\\n\"\r\n"},"seq":338}
1: (871) ->&"\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (871) ->^done\r\n"},"seq":340}
1: (871) ->^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (871) ->(gdb)\r\n"},"seq":342}
1: (871) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (873) 1012: elapsed time 114\r\n"},"seq":344}
1: (873) 1012: elapsed time 114
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (879) Send Event AD7MessageEvent\r\n"},"seq":346}
1: (879) Send Event AD7MessageEvent
--> E (output): {"type":"event","event":"output","body":{"category":"stderr","output":"ERROR: Command aborted. See the output window for additional details.\r\n"},"seq":348}
ERROR: Command aborted. See the output window for additional details.
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (883) 1013: elapsed time 79\r\n"},"seq":350}
1: (883) 1013: elapsed time 79
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (884) Send Event AD7ProcessInfoUpdatedEvent\r\n"},"seq":352}
1: (884) Send Event AD7ProcessInfoUpdatedEvent
--> E (process): {"type":"event","event":"process","body":{"startMethod":"launch","name":"d:\\Users\\Zavier\\Documents\\Program\\C++\\test.exe","systemProcessId":10960,"pointerSize":64},"seq":354}
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (892) Send Event AD7ThreadCreateEvent\r\n"},"seq":356}
1: (892) Send Event AD7ThreadCreateEvent
--> E (thread): {"type":"event","event":"thread","body":{"reason":"started","threadId":1},"seq":358}
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (897) 1014: elapsed time 90\r\n"},"seq":360}
1: (897) 1014: elapsed time 90
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (897) Send Event AD7ThreadCreateEvent\r\n"},"seq":362}
1: (897) Send Event AD7ThreadCreateEvent
--> E (thread): {"type":"event","event":"thread","body":{"reason":"started","threadId":2},"seq":364}
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (899) <-1015-stack-info-frame\r\n"},"seq":366}
1: (899) <-1015-stack-info-frame
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (900) ->1015^done,frame={level=\"0\",addr=\"0x00007ffd514d0fad\",func=\"ntdll!LdrInitShimEngineDynamic\",from=\"/c/Windows/SYSTEM32/ntdll.dll\",arch=\"i386:x86-64\"}\r\n"},"seq":368}
1: (900) ->1015^done,frame={level="0",addr="0x00007ffd514d0fad",func="ntdll!LdrInitShimEngineDynamic",from="/c/Windows/SYSTEM32/ntdll.dll",arch="i386:x86-64"}
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (900) 1015: elapsed time 1\r\n"},"seq":370}
1: (900) 1015: elapsed time 1
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (900) ->(gdb)\r\n"},"seq":372}
1: (900) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (900) ->&\"\\n\"\r\n"},"seq":374}
1: (900) ->&"\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (900) ->^done\r\n"},"seq":376}
1: (900) ->^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (900) ->(gdb)\r\n"},"seq":378}
1: (900) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (912) <-1016-thread-info\r\n"},"seq":380}
1: (912) <-1016-thread-info
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (916) ->1016^done,threads=[{id=\"1\",target-id=\"Thread 10960.0x43b8\",frame={level=\"0\",addr=\"0x00007ffd514d0fad\",func=\"ntdll!LdrInitShimEngineDynamic\",args=[],from=\"/c/Windows/SYSTEM32/ntdll.dll\",arch=\"i386:x86-64\"},state=\"stopped\"},{id=\"2\",target-id=\"Thread 10960.0x12a4\",frame={level=\"0\",addr=\"0x00007ffd514a0724\",func=\"ntdll!ZwWaitForWorkViaWorkerFactory\",args=[],from=\"/c/Windows/SYSTEM32/ntdll.dll\",arch=\"i386:x86-64\"},state=\"stopped\"}],current-thread-id=\"1\"\r\n"},"seq":382}
1: (916) ->1016^done,threads=[{id="1",target-id="Thread 10960.0x43b8",frame={level="0",addr="0x00007ffd514d0fad",func="ntdll!LdrInitShimEngineDynamic",args=[],from="/c/Windows/SYSTEM32/ntdll.dll",arch="i386:x86-64"},state="stopped"},{id="2",target-id="Thread 10960.0x12a4",frame={level="0",addr="0x00007ffd514a0724",func="ntdll!ZwWaitForWorkViaWorkerFactory",args=[],from="/c/Windows/SYSTEM32/ntdll.dll",arch="i386:x86-64"},state="stopped"}],current-thread-id="1"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (916) ->(gdb)\r\n"},"seq":384}
1: (916) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (916) ->&\"\\n\"\r\n"},"seq":386}
1: (916) ->&"\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (916) ->^done\r\n"},"seq":388}
1: (916) ->^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (916) ->(gdb)\r\n"},"seq":390}
1: (916) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (916) 1016: elapsed time 3\r\n"},"seq":392}
1: (916) 1016: elapsed time 3
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (925) <-1017-interpreter-exec console \"info sharedlibrary\"\r\n"},"seq":394}
1: (925) <-1017-interpreter-exec console "info sharedlibrary"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (929) ->~\"From                To                  Syms Read   Shared Object Library\\n\"\r\n"},"seq":396}
1: (929) ->~"From                To                  Syms Read   Shared Object Library\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (929) ->~\"0x00007ffd51401000  0x00007ffd515ef528  Yes         /c/Windows/SYSTEM32/ntdll.dll\\n\"\r\n"},"seq":398}
1: (929) ->~"0x00007ffd51401000  0x00007ffd515ef528  Yes         /c/Windows/SYSTEM32/ntdll.dll\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (930) ->~\"0x00007ffd4ff01000  0x00007ffd4ffb124c  Yes         /c/Windows/System32/KERNEL32.DLL\\n\"\r\n"},"seq":400}
1: (930) ->~"0x00007ffd4ff01000  0x00007ffd4ffb124c  Yes         /c/Windows/System32/KERNEL32.DLL\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (930) ->~\"0x00007ffd4e451000  0x00007ffd4e6f47f8  Yes         /c/Windows/System32/KERNELBASE.dll\\n\"\r\n"},"seq":402}
1: (930) ->~"0x00007ffd4e451000  0x00007ffd4e6f47f8  Yes         /c/Windows/System32/KERNELBASE.dll\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (930) ->~\"0x00007ffd4bc41000  0x00007ffd4bcce6e8  Yes         /c/Windows/SYSTEM32/apphelp.dll\\n\"\r\n"},"seq":404}
1: (930) ->~"0x00007ffd4bc41000  0x00007ffd4bcce6e8  Yes         /c/Windows/SYSTEM32/apphelp.dll\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (930) ->~\"0x00007ffd4fe61000  0x00007ffd4fefd4a4  Yes         /c/Windows/System32/msvcrt.dll\\n\"\r\n"},"seq":406}
1: (930) ->~"0x00007ffd4fe61000  0x00007ffd4fefd4a4  Yes         /c/Windows/System32/msvcrt.dll\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (930) ->1017^done\r\n"},"seq":408}
1: (930) ->1017^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (930) 1017: elapsed time 4\r\n"},"seq":410}
1: (930) 1017: elapsed time 4
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (930) ->(gdb)\r\n"},"seq":412}
1: (930) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (930) ->&\"\\n\"\r\n"},"seq":414}
1: (930) ->&"\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (930) ->^done\r\n"},"seq":416}
1: (930) ->^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (930) ->(gdb)\r\n"},"seq":418}
1: (930) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (931) Send Event AD7ModuleLoadEvent\r\n"},"seq":420}
1: (931) Send Event AD7ModuleLoadEvent
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"Loaded '/c/Windows/SYSTEM32/ntdll.dll'. Symbols loaded.\r\n"},"seq":422}
Loaded '/c/Windows/SYSTEM32/ntdll.dll'. Symbols loaded.
--> E (module): {"type":"event","event":"module","body":{"reason":"new","module":{"id":1,"name":"ntdll.dll","path":"/c/Windows/SYSTEM32/ntdll.dll","symbolFilePath":"/c/Windows/SYSTEM32/ntdll.dll","vsLoadAddress":"140725966606336","vsPreferredLoadAddress":"140725966606336","vsModuleSize":2024744,"vsLoadOrder":0,"vsTimestampUTC":"-11644473600","vsIs64Bit":true}},"seq":424}
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (948) Send Event AD7ModuleLoadEvent\r\n"},"seq":426}
1: (948) Send Event AD7ModuleLoadEvent
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"Loaded '/c/Windows/System32/KERNEL32.DLL'. Symbols loaded.\r\n"},"seq":428}
Loaded '/c/Windows/System32/KERNEL32.DLL'. Symbols loaded.
--> E (module): {"type":"event","event":"module","body":{"reason":"new","module":{"id":2,"name":"KERNEL32.DLL","path":"/c/Windows/System32/KERNEL32.DLL","symbolFilePath":"/c/Windows/System32/KERNEL32.DLL","vsLoadAddress":"140725944586240","vsPreferredLoadAddress":"140725944586240","vsModuleSize":721484,"vsLoadOrder":1,"vsTimestampUTC":"-11644473600","vsIs64Bit":true}},"seq":430}
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (949) Send Event AD7ModuleLoadEvent\r\n"},"seq":432}
1: (949) Send Event AD7ModuleLoadEvent
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"Loaded '/c/Windows/System32/KERNELBASE.dll'. Symbols loaded.\r\n"},"seq":434}
Loaded '/c/Windows/System32/KERNELBASE.dll'. Symbols loaded.
--> E (module): {"type":"event","event":"module","body":{"reason":"new","module":{"id":3,"name":"KERNELBASE.dll","path":"/c/Windows/System32/KERNELBASE.dll","symbolFilePath":"/c/Windows/System32/KERNELBASE.dll","vsLoadAddress":"140725916602368","vsPreferredLoadAddress":"140725916602368","vsModuleSize":2766840,"vsLoadOrder":2,"vsTimestampUTC":"-11644473600","vsIs64Bit":true}},"seq":436}
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (949) Send Event AD7ModuleLoadEvent\r\n"},"seq":438}
1: (949) Send Event AD7ModuleLoadEvent
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"Loaded '/c/Windows/SYSTEM32/apphelp.dll'. Symbols loaded.\r\n"},"seq":440}
Loaded '/c/Windows/SYSTEM32/apphelp.dll'. Symbols loaded.
--> E (module): {"type":"event","event":"module","body":{"reason":"new","module":{"id":4,"name":"apphelp.dll","path":"/c/Windows/SYSTEM32/apphelp.dll","symbolFilePath":"/c/Windows/SYSTEM32/apphelp.dll","vsLoadAddress":"140725874593792","vsPreferredLoadAddress":"140725874593792","vsModuleSize":579304,"vsLoadOrder":3,"vsTimestampUTC":"-11644473600","vsIs64Bit":true}},"seq":442}
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (949) Send Event AD7ModuleLoadEvent\r\n"},"seq":444}
1: (949) Send Event AD7ModuleLoadEvent
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"Loaded '/c/Windows/System32/msvcrt.dll'. Symbols loaded.\r\n"},"seq":446}
Loaded '/c/Windows/System32/msvcrt.dll'. Symbols loaded.
--> E (module): {"type":"event","event":"module","body":{"reason":"new","module":{"id":5,"name":"msvcrt.dll","path":"/c/Windows/System32/msvcrt.dll","symbolFilePath":"/c/Windows/System32/msvcrt.dll","vsLoadAddress":"140725943930880","vsPreferredLoadAddress":"140725943930880","vsModuleSize":640164,"vsLoadOrder":4,"vsTimestampUTC":"-11644473600","vsIs64Bit":true}},"seq":448}
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (955) <-1018-stack-list-frames 0 1000\r\n"},"seq":450}
1: (955) <-1018-stack-list-frames 0 1000
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (959) ->1018^done,stack=[frame={level=\"0\",addr=\"0x00007ffd514d0fad\",func=\"ntdll!LdrInitShimEngineDynamic\",from=\"/c/Windows/SYSTEM32/ntdll.dll\",arch=\"i386:x86-64\"},frame={level=\"1\",addr=\"0x00007ffd514d436f\",func=\"ntdll!LdrInitShimEngineDynamic\",from=\"/c/Windows/SYSTEM32/ntdll.dll\",arch=\"i386:x86-64\"},frame={level=\"2\",addr=\"0x00007ffd5147221b\",func=\"ntdll!LdrInitializeThunk\",from=\"/c/Windows/SYSTEM32/ntdll.dll\",arch=\"i386:x86-64\"},frame={level=\"3\",addr=\"0x00007ffd514720a3\",func=\"ntdll!LdrInitializeThunk\",from=\"/c/Windows/SYSTEM32/ntdll.dll\",arch=\"i386:x86-64\"},frame={level=\"4\",addr=\"0x00007ffd5147204e\",func=\"ntdll!LdrInitializeThunk\",from=\"/c/Windows/SYSTEM32/ntdll.dll\",arch=\"i386:x86-64\"},frame={level=\"5\",addr=\"0x0000000000000000\",func=\"??\",arch=\"i386:x86-64\"}]\r\n"},"seq":452}
1: (959) ->1018^done,stack=[frame={level="0",addr="0x00007ffd514d0fad",func="ntdll!LdrInitShimEngineDynamic",from="/c/Windows/SYSTEM32/ntdll.dll",arch="i386:x86-64"},frame={level="1",addr="0x00007ffd514d436f",func="ntdll!LdrInitShimEngineDynamic",from="/c/Windows/SYSTEM32/ntdll.dll",arch="i386:x86-64"},frame={level="2",addr="0x00007ffd5147221b",func="ntdll!LdrInitializeThunk",from="/c/Windows/SYSTEM32/ntdll.dll",arch="i386:x86-64"},frame={level="3",addr="0x00007ffd514720a3",func="ntdll!LdrInitializeThunk",from="/c/Windows/SYSTEM32/ntdll.dll",arch="i386:x86-64"},frame={level="4",addr="0x00007ffd5147204e",func="ntdll!LdrInitializeThunk",from="/c/Windows/SYSTEM32/ntdll.dll",arch="i386:x86-64"},frame={level="5",addr="0x0000000000000000",func="??",arch="i386:x86-64"}]
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (959) ->(gdb)\r\n"},"seq":454}
1: (959) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (959) ->&\"\\n\"\r\n"},"seq":456}
1: (959) ->&"\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (959) ->^done\r\n"},"seq":458}
1: (959) ->^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (959) 1018: elapsed time 3\r\n"},"seq":460}
1: (959) 1018: elapsed time 3
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (959) ->(gdb)\r\n"},"seq":462}
1: (959) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (962) Send Event AD7ExceptionEvent\r\n"},"seq":464}
1: (962) Send Event AD7ExceptionEvent
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"Execute debugger commands using \"-exec <command>\", for example \"-exec info registers\" will list registers in use (when GDB is the debugger)\r\n"},"seq":466}
Execute debugger commands using "-exec <command>", for example "-exec info registers" will list registers in use (when GDB is the debugger)
--> E (stopped): {"type":"event","event":"stopped","body":{"reason":"exception","threadId":1,"text":"Debugger was unable to continue the process.","allThreadsStopped":true},"seq":468}
<--   C (threads-7): {"command":"threads","type":"request","seq":7}
--> R (threads-7): {"type":"response","request_seq":7,"success":true,"command":"threads","body":{"threads":[{"id":1,"name":"Thread #1"},{"id":2,"name":"Thread #2"}]},"seq":471}
<--   C (stackTrace-8): {"command":"stackTrace","arguments":{"threadId":1,"startFrame":0,"levels":20},"type":"request","seq":8}
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (994) <-1019-stack-list-arguments 0 0 5\r\n"},"seq":474}
1: (994) <-1019-stack-list-arguments 0 0 5
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (995) ->1019^done,stack-args=[frame={level=\"0\",args=[]},frame={level=\"1\",args=[]},frame={level=\"2\",args=[]},frame={level=\"3\",args=[]},frame={level=\"4\",args=[]},frame={level=\"5\",args=[]}]\r\n"},"seq":476}
1: (995) ->1019^done,stack-args=[frame={level="0",args=[]},frame={level="1",args=[]},frame={level="2",args=[]},frame={level="3",args=[]},frame={level="4",args=[]},frame={level="5",args=[]}]
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (995) ->(gdb)\r\n"},"seq":478}
1: (995) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (995) ->&\"\\n\"\r\n"},"seq":480}
1: (995) ->&"\n"
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (995) ->^done\r\n"},"seq":482}
1: (995) ->^done
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (995) ->(gdb)\r\n"},"seq":484}
1: (995) ->(gdb)
--> E (output): {"type":"event","event":"output","body":{"category":"console","output":"1: (996) 1019: elapsed time 2\r\n"},"seq":486}
1: (996) 1019: elapsed time 2
--> R (stackTrace-8): {"type":"response","request_seq":8,"success":true,"command":"stackTrace","body":{"stackFrames":[{"id":1000,"name":"ntdll.dll!ntdll!LdrInitShimEngineDynamic","line":0,"column":0,"moduleId":1},{"id":1001,"name":"ntdll.dll!ntdll!LdrInitShimEngineDynamic","line":0,"column":0,"moduleId":1},{"id":1002,"name":"ntdll.dll!ntdll!LdrInitializeThunk","line":0,"column":0,"moduleId":1},{"id":1003,"name":"ntdll.dll!ntdll!LdrInitializeThunk","line":0,"column":0,"moduleId":1},{"id":1004,"name":"ntdll.dll!ntdll!LdrInitializeThunk","line":0,"column":0,"moduleId":1},{"id":1005,"name":"[Unknown/Just-In-Time compiled code]","line":0,"column":0}],"totalFrames":6},"seq":488}
<--   C (threads-9): {"command":"threads","type":"request","seq":9}
--> R (threads-9): {"type":"response","request_seq":9,"success":true,"command":"threads","body":{"threads":[{"id":1,"name":"Thread #1"},{"id":2,"name":"Thread #2"}]},"seq":491}
<--   C (scopes-10): {"command":"scopes","arguments":{"frameId":1000},"type":"request","seq":10}
--> R (scopes-10): {"type":"response","request_seq":10,"success":true,"command":"scopes","body":{"scopes":[]},"seq":494}
ZavierYan commented 3 years ago

I uninstalled Chinese language extension, I don't know why, but it seems working fine now.