Skip to content

gdb debugger set auto-load safe-path / no effect #13663

Open
@WittonBell

Description

@WittonBell

Type: Bug

  1. create any cmake project.
  2. use gdb debugger to debug app
  3. add .gdbinit to project root directory. The content is:
python
print("Local GDB Init")
end
  1. add config to ~/.gdbinit:
set auto-load local-gdbinit on
set auto-load safe-path /
add-auto-load-safe-path /

python
print("Global GDB init")
end
  1. start gdb debugger from VSCode, it will show Global GDB init but no Local GDB Init. So, project's .gdbinit not run.

Extension version: 1.25.3
VS Code version: Code 1.100.2 (848b80aeb52026648a8ff9f7c45a9b0a80641e2e, 2025-05-14T21:47:40.416Z)
OS version: Windows_NT x64 10.0.19045
Modes:

Metadata

Metadata

Assignees

No one assigned

    Labels

    debuggerhelp wantedCan be fixed in the public (open source) repo.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions