my .vimspector.json
:
{
"configurations": {
"cpp:launch": {
"adapter": "vscode-cpptools",
"configuration": {
"name": "cpp",
"type": "cppdbg",
"request": "launch",
"program": "${fileDirname}/${fileBasenameNoExtension}",
"args": ["*${ProgramArgs}"],
"cwd": "${workspaceRoot}",
"environment": [],
"externalConsole": true,
"stopAtEntry": true,
"MIMode": "gdb",
"logging": {
"engineLogging": false
},
"miDebuggerPath": "/usr/bin/gdb"
}
},
"cpp:attach": {
"adapter": "vscode-cpptools",
"configuration": {
"name": "cpp",
"type": "cppdbg",
"request": "attach",
"program": "${fileDirname}/${fileBasenameNoExtension}",
"MIMode": "gdb"
}
}
}
}
error screenshot
VimspectorToggleLog:
2021-06-18 03:36:23,483 - INFO - **** INITIALISING NEW VIMSPECTOR SESSION ****
2021-06-18 03:36:23,483 - INFO - API is:
2021-06-18 03:36:23,483 - INFO - VIMSPECTOR_HOME = /root/.vim/plugged/vimspector
2021-06-18 03:36:23,492 - INFO - gadgetDir = /root/.vim/plugged/vimspector/gadgets/linux
2021-06-18 03:36:23,493 - INFO - User requested start debug session with {}
2021-06-18 03:36:23,495 - DEBUG - Reading configurations from: None
2021-06-18 03:36:23,497 - DEBUG - Reading configurations from: /root/workspace/Master-s-research-project/cpp/.vimspector.json
2021-06-18 03:36:23,501 - DEBUG - Reading gadget config: /root/.vim/plugged/vimspector/gadgets/linux/.gadgets.json
2021-06-18 03:36:23,505 - DEBUG - Reading gadget config: None
2021-06-18 03:36:26,591 - DEBUG - Value for ProgramArgs not set in ${ProgramArgs} (from ${ProgramArgs}): set to
2021-06-18 03:36:26,592 - INFO - Configuration: {"adapter": "vscode-cpptools", "configuration": {"name": "cpp", "type": "cppdbg", "request": "launch", "program": "/root/workspace/Master-s-research-project/cpp/leetcode/runfile/210523_maximizeXor", "args": [], "cwd": "/root/workspace/Master-s-research-project/cpp", "environment": [], "externalConsole": true, "stopAtEntry": true, "MIMode": "gdb", "logging": {"engineLogging": false}, "miDebuggerPath": "/usr/bin/gdb"}}
2021-06-18 03:36:26,592 - INFO - Adapter: {"attach": {"pidProperty": "processId", "pidSelect": "ask"}, "command": ["/root/.vim/plugged/vimspector/gadgets/linux/vscode-cpptools/debugAdapters/OpenDebugAD7"], "configuration": {"args": [], "cwd": "/root/workspace/Master-s-research-project/cpp", "environment": [], "type": "cppdbg"}, "name": "cppdbg"}
2021-06-18 03:36:26,608 - DEBUG - min_width/height: 149/50, actual: 182/50 - result: horizontal
2021-06-18 03:36:26,966 - DEBUG - LAUNCH!
2021-06-18 03:36:26,971 - INFO - Starting debug adapter with: {"attach": {"pidProperty": "processId", "pidSelect": "ask"}, "command": ["/root/.vim/plugged/vimspector/gadgets/linux/vscode-cpptools/debugAdapters/OpenDebugAD7"], "configuration": {"args": [], "cwd": "/root/workspace/Master-s-research-project/cpp", "environment": [], "type": "cppdbg"}, "name": "cppdbg"}
2021-06-18 03:36:26,971 - DEBUG - Connection Type: job
2021-06-18 03:36:27,076 - INFO - Debug Adapter Started
2021-06-18 03:36:27,077 - DEBUG - Sending Message: {"command": "initialize", "arguments": {"adapterID": "cppdbg", "clientID": "vimspector", "clientName": "vimspector", "linesStartAt1": true, "columnsStartAt1": true, "locale": "en_GB", "pathFormat": "path", "supportsVariableType": true, "supportsVariablePaging": false, "supportsRunInTerminalRequest": true}, "seq": 0, "type": "request"}
2021-06-18 03:36:27,080 - INFO - The server has terminated with status 127
2021-06-18 03:36:27,085 - DEBUG - Closing down: Aborting request {'command': 'initialize', 'arguments': {'adapterID': 'cppdbg', 'clientID': 'vimspector', 'clientName': 'vimspector', 'linesStartAt1': True, 'columnsStartAt1': True, 'locale': 'en_GB', 'pathFormat': 'path', 'supportsVariableType': True, 'supportsVariablePaging': False, 'supportsRunInTerminalRequest': True}, 'seq': 0, 'type': 'request'}
2021-06-18 03:36:27,085 - INFO - User Msg: Request for initialize aborted: Closing down
2021-06-18 03:36:27,113 - DEBUG - No server exit handler