Skip to content

Linux Debugger overrides setup command options #3324

@nsnerurkar

Description

@nsnerurkar

Type: Debugger

  • OS and Version: Debian 9
  • VS Code Version: 1.32.3
  • C/C++ Extension Version: 0.21.0

I work with applications which have dependencies on a large number of shared libraries. Usually, when using gdb outside of VSCode, I use "set auto-solib-add off" so that the software attaches faster.

I added the following snippet in my launch.json -

"setupCommands":[
{"text": "set auto-solib-add off",
"description": "Turn off solib add",
"ignoreFailures": true
}]

It seems when vscode launches gdb, it runs this command and then automatically overrides it with "set auto-solib-add on".

To Reproduce

  1. Create an attach configuration
  2. add setupcommands as above

Additional Info
Snippet from log -
1: (838) <-1001-gdb-set target-async on
1: (839) ->1001^done
1: (839) ->(gdb)
1: (840) 1001: elapsed time 2
1: (847) <-1002-enable-pretty-printing
1: (848) ->1002^done
1: (848) ->(gdb)
1: (848) 1002: elapsed time 0
1: (849) <-1003-interpreter-exec console "set auto-solib-add off"
1: (849) ->1003^done
1: (850) ->(gdb)
1: (850) 1003: elapsed time 0
1: (850) <-1004-interpreter-exec console "set pagination off"
1: (850) ->=cmd-param-changed,param="pagination",value="off"
1: (851) ->1004^done
1: (851) ->(gdb)
1: (851) 1004: elapsed time 0
1: (851) <-1005-gdb-set auto-solib-add on
1: (851) ->1005^done
1: (851) ->(gdb)
1: (851) 1005: elapsed time 0

Metadata

Metadata

Assignees

Labels

Feature RequestdebuggerfixedCheck the Milestone for the release in which the fix is or will be available.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions