Intel® Distribution for GDB* Documentation
Documentation & Code Samples
Documentation
- User Guide for Intel® Distribution for GDB*
- Get Started Guides: Linux* | Windows*
- Debug Examples on Linux
- Debug Examples on Windows
Intel® Distribution for GDB*
Reference
Legacy Documentation
Forums
Code Samples
Learn how to access oneAPI code samples in a tool command line or IDE.
This SYCL code sample—a small computation kernel—demonstrates key debugger features such as breakpoints, thread switching, scheduler locking, and a Single Instruction Multiple Data (SIMD) lane view for CPU and GPU emulator debugging, showing how to effectively debug applications.
This exercise presents two versions of the program: one with bugs and another fixed. The aim is to locate and rectify bugs using the debugger and providing practical experience in debugging.
{"limitDisplayedContent":"showAll","collectionRelationTags":{"relations":{"EXCLUDE":["etm-08dd1c4874304c9b9987050a09dd8567","etm-906567252bdc432bbaeb908fabef076f","etm-05429363730b40109b394df6a76dd677","etm-3baf460d15b141cfba51bdf58d2f2496","etm-96a2a467cd514dff85b6c153b364b0fa","etm-2f5e76b4e5e64d90a794e6a9d8dc26fd","etm-fc274692325e497dba29db02e84821c2","etm-80b662df26a3410eb1ecf99114bc569b","etm-ead3671d63584869ab0df9a593366522","etm-72cbbe7d977c407e9bd60dc9a5a2d0c2","etm-86fd3d3462554a56b8e3c223be8417e1","etm-c216d58933fc4051a502694b29828faa","etm-6f8479a5b1ce453c957fa689bfed124f","etm-454697a6b0ca41e8a0f6606316e92b7c"],"AND":["etm-086ec8c4b4074875b84ba0e35d214cf5","etm-6b088d69d83243a0aa3b986645a7e74b","etm-ccf1d07d8626428eb376de265214ef42"]},"featuredIds":[]},"collectionId":"729083","resultPerPage":80.0,"filters":[{"facetId":"ContentType","type":"ContentType","deprecated":true,"name":"ContentType","position":0},{"facetId":"@stm_10306_zh","field":"stm_10306_zh","type":"hierarchical","basePath":"Operating System","displayName":"Operating System","deprecated":false,"rootFilter":"","position":1},{"facetId":"@stm_10357_zh","field":"stm_10357_zh","type":"specific","basePath":"Programming Language","displayName":"Programming Language","deprecated":false,"rootFilter":"","position":2}],"coveoRequestHardLimit":"1000","accessDetailsPagePath":"/content/www/us/en/secure/design/internal/access-details.html","collectionGuids":["etm-086ec8c4b4074875b84ba0e35d214cf5","etm-6b088d69d83243a0aa3b986645a7e74b","etm-ccf1d07d8626428eb376de265214ef42"],"cardView":false,"sorting":"Newest","defaultImagesPath":"/content/dam/www/public/us/en/images/uatable/default-icons","coveoMaxResults":5000,"coveoSplitSize":500,"fpgaFacetRootPaths":"{\"fpgadevicefamily\":[\"Primary Content Tagging\",\"Intel® FPGAs\",\"Intel® Programmable Devices\"],\"quartusedition\":[\"Primary Content Tagging\",\"Intel® FPGAs\",\"Intel® Quartus Software\"],\"quartusaddon\":[\"Primary Content Tagging\",\"Intel® FPGAs\",\"Intel® Quartus Software - Add-ons\"],\"fpgaplatform\":[\"Primary Content Tagging\",\"Intel® FPGAs\",\"Intel® FPGA Platforms\"]}","newWrapperPageEnabled":true,"descendingSortingForNumericalFacetsName":"[\"Intel® Quartus® Prime Pro Edition\",\"Intel® Quartus® Prime Lite Edition\",\"Intel® Quartus® Prime Standard Edition\",\"Quartus® II Subscription Edition\",\"Quartus® II Web Edition\"]","columnsConfiguration":{"idColumn":false,"dateColumn":false,"versionColumn":false,"contentTypeColumn":false,"columnsMaxSize":0},"dynamicColumnsConfiguration":[{"name":"DynamicColumn_id","type":"id","gtv":"ID 标签","width":60,"selected":true},{"name":"DynamicColumn_date","type":"date","gtv":"日期","width":60,"selected":true},{"name":"DynamicColumn_version","type":"version","gtv":"版本","width":135,"selected":true}],"updateCollateralMetadataEnabled":true,"relatedAssetsEnable":true,"disableExpandCollapseAll":false,"enableRelatedAssetsOnExpandAll":false,"disableBlueBanner":false,"isICS":false,"isUPE":false}