# Debug Visual Studio Code launcher settings can be found into `.vscode/launch.json`. >**Tricks:** > >To debug both `xds-cli` and `xds-agent` (REST API part) or common code `xds-common`, it may be useful use the same local sources. > >So you should replace `xds-agent` + `xds-common` in `vendor` directory by a symlink. > >So clone first `xds-agent` + `xds-common` sources next to `xds-cli` directory. You should have the following tree: ```bash tree -L 5 --charset=ascii src/ src/ `-- gerrit.automotivelinux.org `-- gerrit `-- src `-- xds |-- backup.sh |-- xds-agent |-- xds-cli |-- xds-common |-- xds-docs |-- xds-gdb `-- xds-server ``` Then invoke `vendor/debug` Makefile rule to create a symlink inside vendor directory : ```bash cd src/gerrit.automotivelinux.org/gerrit/src/xds/xds-cli make vendor/debug ```