The gdb debugger can be scripted with python scripts. I would like to use LSP-pyright to get autocompletion for these gdb scripts.
The gdb program has an option to run a file with commands at startup and then exit. We can use this to determine the additional search paths we need to set for this "gdb" dev environment:
The gdb debugger can be scripted with python scripts. I would like to use LSP-pyright to get autocompletion for these gdb scripts.
The
gdb
program has an option to run a file with commands at startup and then exit. We can use this to determine the additional search paths we need to set for this "gdb" dev environment:The
print_sys_path.commands
file is very simple:So from this output, we can see that we need to add the additional search paths