code-debug icon indicating copy to clipboard operation
code-debug copied to clipboard

how to dynamic load shared library in launch.json

Open binbinlau opened this issue 3 years ago • 3 comments

If submitting a bug please make sure

  • [x] If you are using gdb
    • [x] gdb --version >= 7.7.1
    • [x] it works on the command line with gdb
    • [x] cwd and target are properly set
  • [ ] If you are using lldb
    • [ ] lldb --version >= 3.7.1
    • [ ] it works on the command line with lldb-mi
    • [ ] cwd and target are properly set

Screenshots are helpful but not required

binbinlau avatar Apr 27 '22 16:04 binbinlau

i can't config command "set solib-search-path xxx" for load shared library

binbinlau avatar Apr 27 '22 16:04 binbinlau

Hi @binbinlau, you should be able to configure this via the debugger_args option:

"debugger_args": ["-iex", "set solib-search-path xxx"]

brownts avatar Apr 27 '22 20:04 brownts

Should we make an explicit note about this case in the user documentation (README.md) or should we close this directly?

GitMensch avatar May 05 '22 05:05 GitMensch

I don't believe there is any further action on this. Feel free to re-open this issue if you feel this was not sufficiently addressed.

brownts avatar Nov 12 '22 15:11 brownts