You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
VS Code version: Code 1.96.2 (fabdb6a30b49f79a7aba0f2ad9df9b399473380f, 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)
Hi,
While gdb works fine in the terminal [even the one inside visual code] and can attach to the running process fine, with the command 'gdb ./demo 10113' [gdb 'file' 'PID'].
It cannot be attached to a running process from Visual Studio Code.
It is starting and then closing, with no logs in the Debug console.
I am using centos7, and besides 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.
Steps to reproduce:
In this environment... Run a C++ program that has some loop or something that will keep it going for some time, or eternally. After that just try to use any suitable or preferred task.json config which will let you attach to the running process using GDB. Try using your task, and attach it to the process, it will try to attach for a very brief moment and then close automatically.
With this config... No special config is needed, just use the below task.json if you want.
Help will be appreciated.
Thanks and regards,
Amit Kr Das.
The issue was first raised in the VS Code git Repository, which was checked by Rob Lourens [email protected],
and concluded that this issue belongs to the cpptools extension, rather than VSCode itself.
Environment
VS Code version: Code 1.96.2 (fabdb6a30b49f79a7aba0f2ad9df9b399473380f, 2024-12-19T10:22:47.216Z)
OS version: Linux x64 3.10.0-1160.119.1.el7.x86_64 snap
Modes:
System Info
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
Extensions (11)
(1 theme extensions excluded)
A/B Experiments
Bug Summary and Steps to Reproduce
Bug Summary:
Hi,
While gdb works fine in the terminal [even the one inside visual code] and can attach to the running process fine, with the command 'gdb ./demo 10113' [gdb 'file' 'PID'].
It cannot be attached to a running process from Visual Studio Code.
It is starting and then closing, with no logs in the Debug console.
I am using centos7, and besides 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.
Steps to reproduce:
Help will be appreciated.
Thanks and regards,
Amit Kr Das.
Debugger Configurations
Debugger Logs
No log is getting logged in the Debug Console.
Other Extensions
Extensions (11)
(1 theme extensions excluded)
Additional Information
The issue was first raised in the VS Code git Repository, which was checked by Rob Lourens [email protected],
and concluded that this issue belongs to the cpptools extension, rather than VSCode itself.
The previous issue can be viewed at: microsoft/vscode#237283
The text was updated successfully, but these errors were encountered: