Description
Type: Bug
Hi,
While gdb is working fine in terminal [even the one inside visual code], and is able to attach to the running process fine, with the command 'gdb ./demo 10113' [gdb ].
It is not able to attach in visual code.
I am using the below config in launch.json ->
{
"name": "(gdb) Attach",
"type": "cppdbg",
"request": "attach",
"program": "/home/oswald/lab/repos/oswald_FNP_main/FNP/_output/_debug/11.19.8.0/main/Linux-x86_64-ipv6/x64_linux/demo",
"processId": "12657",
"MIMode": "gdb",
"miDebuggerPath": "/usr/bin/gdb", // Path to 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
}
],
"logging": {
"engineLogging": true,
"trace": true,
"traceResponse": true
}
}
It is starting and then closing, with not logs in the Debug console.
I am using centos7, and beside this, VS Code is running fine, and on its own gdb is also working fine.
I may be going wrong somewhere, but I tried to dig in, and found nothing.
Help will be really appreciated.
Thanks and regards,
Amit Kr Das.
VS Code version: Code 1.96.2 (fabdb6a, 2024-12-19T10:22:47.216Z)
OS version: Linux x64 3.10.0-1160.119.1.el7.x86_64 snap
Modes:
System Info
Item | Value |
---|---|
CPUs | 11th Gen Intel(R) Core(TM) i7-11850H @ 2.50GHz (7 x 0) |
GPU Status | 2d_canvas: unavailable_software canvas_oop_rasterization: disabled_off direct_rendering_display_compositor: disabled_off_ok gpu_compositing: disabled_software multiple_raster_threads: enabled_on opengl: disabled_off rasterization: disabled_software raw_draw: disabled_off_ok skia_graphite: disabled_off video_decode: disabled_software video_encode: disabled_software vulkan: disabled_off webgl: unavailable_software webgl2: unavailable_software webgpu: disabled_off webnn: unavailable_software |
Load (avg) | 0, 0, 0 |
Memory (System) | 15.94GB (13.42GB free) |
Process Argv | --no-sandbox --crash-reporter-id 448e97e1-1932-4135-86d7-85950d4bc8b3 |
Screen Reader | no |
VM | 100% |
DESKTOP_SESSION | 1-kde-plasma-standard |
XDG_CURRENT_DESKTOP | KDE |
XDG_SESSION_DESKTOP | 1-kde-plasma-standard |
XDG_SESSION_TYPE | x11 |
Extensions (11)
Extension | Author (truncated) | Version |
---|---|---|
fnp2025-selective-picker | FNP | 0.0.1 |
debugpy | ms- | 2024.14.0 |
python | ms- | 2024.22.1 |
vscode-pylance | ms- | 2024.12.1 |
cmake-tools | ms- | 1.19.52 |
cpptools | ms- | 1.23.2 |
cpptools-extension-pack | ms- | 1.3.0 |
makefile-tools | ms- | 0.11.13 |
gdb-dap | Ole | 0.2.8 |
vscode-perl | the | 1.18.2 |
cmake | twx | 0.0.17 |
(1 theme extensions excluded)
A/B Experiments
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805cf:30301675
binariesv615:30325510
vsaa593cf:30376535
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
962ge761:30959799
pythonnoceb:30805159
pythonmypyd1:30879173
h48ei257:31000450
pythontbext0:30879054
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
dsvsc021:30996838
dvdeprecation:31068756
dwnewjupyter:31046869
newcmakeconfigv2:31071590
nativerepl1:31139838
pythonrstrctxt:31112756
nativeloc1:31192215
cf971741:31144450
iacca1:31171482
notype1cf:31157160
5fd0e150:31155592
dwcopilot:31170013
stablechunks:31184530
6074i472:31201624