{"id":19075332,"url":"https://github.com/gershnik/set-vscode-xcode","last_synced_at":"2026-06-18T12:31:01.113Z","repository":{"id":143477886,"uuid":"475375756","full_name":"gershnik/set-vscode-xcode","owner":"gershnik","description":"A script to enable VSCode native debugging on Mac with Xcode in a non-default location","archived":false,"fork":false,"pushed_at":"2026-06-01T08:37:16.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-06-01T10:22:02.916Z","etag":null,"topics":["debugging","vscode","xcode"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gershnik.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-03-29T09:42:01.000Z","updated_at":"2026-06-01T08:37:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"7f577e94-8a9a-41e4-a06f-413d8de890f1","html_url":"https://github.com/gershnik/set-vscode-xcode","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gershnik/set-vscode-xcode","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gershnik%2Fset-vscode-xcode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gershnik%2Fset-vscode-xcode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gershnik%2Fset-vscode-xcode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gershnik%2Fset-vscode-xcode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gershnik","download_url":"https://codeload.github.com/gershnik/set-vscode-xcode/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gershnik%2Fset-vscode-xcode/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34491225,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-18T02:00:06.871Z","response_time":128,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["debugging","vscode","xcode"],"created_at":"2024-11-09T01:54:24.603Z","updated_at":"2026-06-18T12:31:01.108Z","avatar_url":"https://github.com/gershnik.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# set-vscode-xcode\nA script to enable native debugging in VSCode on Mac with Xcode in a non-default location.\n\nMore info about why this is needed and what it does can be found in [this article](https://gershnik.github.io/2022/03/29/vscode-cpp-debugging-non-default-xcode.html)\n\nTo use:\n\n* Download `set-vscode-xcode` script somewhere\n* Make it executable\n  ```console\n  chmod a+x set-vscode-xcode\n  ```\n* Run it: \n  ```console\n  ./set-vscode-xcode\n  ```\n \n  This will configure VSCode to use the currently-default Xcode for debugging. If you use the CMake extension and its debugging support, you are all set.\n* If you use `launch.json` configurations to debug, you will need to set the following in each native configuration\n \n  ```json\n  \"MIMode\": \"lldb\",\n  \"miDebuggerPath\": \"${env:HOME}/.vscode-lldb-mi/lldb-mi\"\n  ```\n\n  This config is fixed and doesn't need to change.\n \n**Important Note #1**: you will need to re-run the script:\n1. After the C++ extension is updated (usually every time VSCode updates itself)\n2. If you want to use a different Xcode\n\n**Important Note #2**: the script assumes that VSCode is installed in the default location. If it isn't, modify the `vsCodeLocation` variable at the top of the script.\n\nYou can control which Xcode is default by using the `xcode-select` command-line tool or by going to Xcode's Preferences -\u003e Locations tab and selecting the instance you want in the \"Command Line Tools\" field.\n\nIf you want to use a non-default Xcode you can run `set-vscode-xcode` with the `DEVELOPER_DIR` environment variable set to point to the one you want to use.\n\nSomething like\n\n```console\nDEVELOPER_DIR=/Path/To/A\\ Different/Xcode.app/Contents/Developer ./set-vscode-xcode\n```\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgershnik%2Fset-vscode-xcode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgershnik%2Fset-vscode-xcode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgershnik%2Fset-vscode-xcode/lists"}