バグを説明する
これはlaunch.json
{
"version": "0.2.0",
"configurations": [
{
"name": "(gdb)",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceFolder}/a.exe",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": true,
"MIMode": "gdb",
"miDebuggerPath": "D:\\CodeBlocks\\MinGW\bin\\gdb.exe",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
}
]
}
これはtasks.json
{
"version": "2.0.0",
"tasks": [
{
"label": "build hello world",
"type": "shell",
"command": "g++",
"args": [
"-g", "${fileBasenameNoExtension}.cpp"
],
"group": {
"kind": "build",
"isDefault": true
}
}
]
}
また、文字「0x08」はありません。 launch.json
は、すべての文字を表示するメモ帳++では次のようになります。
誰でも助けることができますか?😀
最も参考になるコメント
どうもありがとう
gdb.exeのパスに文字「\」がありません。