{"id":16539707,"url":"https://github.com/rickstaa/vscode-cpp-debug-example","last_synced_at":"2025-03-04T02:45:01.299Z","repository":{"id":104253925,"uuid":"426571599","full_name":"rickstaa/vscode-cpp-debug-example","owner":"rickstaa","description":"Simple repository that contains the setup needed to debug a C++ file with both the GDB and LLDB debuggers.","archived":false,"fork":false,"pushed_at":"2021-11-10T10:44:30.000Z","size":5,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-14T07:24:19.226Z","etag":null,"topics":["debug","example","gdb","lldb","vscode"],"latest_commit_sha":null,"homepage":"https://code.visualstudio.com/docs/cpp/introvideos-cpp","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rickstaa.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2021-11-10T10:05:23.000Z","updated_at":"2021-11-10T10:44:33.000Z","dependencies_parsed_at":null,"dependency_job_id":"a5f595e9-df4d-4cf2-82a9-d267b96135c2","html_url":"https://github.com/rickstaa/vscode-cpp-debug-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rickstaa%2Fvscode-cpp-debug-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rickstaa%2Fvscode-cpp-debug-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rickstaa%2Fvscode-cpp-debug-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rickstaa%2Fvscode-cpp-debug-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rickstaa","download_url":"https://codeload.github.com/rickstaa/vscode-cpp-debug-example/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241773255,"owners_count":20018064,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["debug","example","gdb","lldb","vscode"],"created_at":"2024-10-11T18:50:14.429Z","updated_at":"2025-03-04T02:45:01.279Z","avatar_url":"https://github.com/rickstaa.png","language":"C++","readme":"# Vscode C++ debug example\n\nSimple repository that contains the setup needed to debug a C++ file with both the [GDB](https://www.gnu.org/software/gdb/)\nand [LLDB](https://lldb.llvm.org/) debuggers. More information can be found [here](https://github.com/microsoft/vscode-cpptools/issues/5415).\n\n## Clang-tidy\n\nTo use clang-tidy you currently have to install the [clang-tidy](https://marketplace.visualstudio.com/items?itemName=notskm.clang-tidy) extension\nsince this feature has not yet been implemented in the [C++](https://marketplace.visualstudio.com/items?itemName=ms-vscode.cpptools) extension (see [vscode-cpptools/issues/2908](https://github.com/microsoft/vscode-cpptools/issues/2908)).\n\n## Catkin workspace\n\nYou have to install the [catkin-tools](https://marketplace.visualstudio.com/items?itemName=betwo.b2-catkin-tools) extension\nto get all the intellisense, linting and formatting features to work. After you enabled this extension you have to add the following\nsettings to your `settings.json` file:\n\n```json\n\"catkin_tools.mergedCompileCommandsJsonPath\": \"${workspaceFolder}/compile_commands.json\",\n\"catkin_tools.recursiveHeaderParsingEnabled\": true,\n\"C_Cpp.default.configurationProvider\": \"b2.catkin_tools\",\n```\n\nYou further have to set the `DCMAKE_EXPORT_COMPILE_COMMANDS` and `DCMAKE_BUILD_TYPE` flags your catkin workspace config:\n\n```bash\ncatkin config --cmake-args -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_BUILD_TYPE=Debug\n```\n\nFor more information see [the extension documentation](https://github.com/betwo/vscode-catkin-tools).\n[here](https://github.com/microsoft/vscode-cpptools/issues/5415) and [here](https://code.visualstudio.com/docs/cpp/config-linux).\n\n## ROS packages\n\nIf you also want to debug ROS packages you can install the [vscode-ros](https://marketplace.visualstudio.com/items?itemName=ms-iot.vscode-ros).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frickstaa%2Fvscode-cpp-debug-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frickstaa%2Fvscode-cpp-debug-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frickstaa%2Fvscode-cpp-debug-example/lists"}