User guide for using Visual Studio Code with Intel oneAPI Toolkits, covering local, SSH, WSL, and Docker development, extensions, samples, and debugging.
This user guide explains how to use Visual Studio Code with Intel oneAPI Toolkits. It covers local development, remote development over SSH, development on Windows Subsystem for Linux, and development in Docker containers, and describes installing oneAPI extensions, browsing samples, configuring the environment, and debugging with gdb-oneapi.
The guide also lists prerequisites such as CMake, Linux C/C++ development tools, the VS Code C/C++ Extension Pack, and at least one installed Intel oneAPI toolkit. It notes supported debugging scenarios and limitations, including that debugging a local Windows host with Visual Studio Code is not supported.
| Debugger included in Intel oneAPI Base Toolkit | gdb-oneapi, a special version of GNU GDB |
|---|---|
| Local Linux debugging support | CPU debugging is supported; GPU debugging requires a remote host |
| Remote Linux debugging support | Supported from a Windows or Linux host using Visual Studio Code |
| Local Windows debugging support | Not supported using Visual Studio Code |
| Intel Distribution for GDB Visual Studio Code support | Not currently supported |
Open the Command Palette, type Intel oneAPI, and click Intel oneAPI: Initialize environment variables. Then locate the setvars or oneapi-vars file for your installation.
No. The guide states that debugging a local Windows host using Visual Studio Code is not supported.
The Intel oneAPI Base Toolkit includes gdb-oneapi, a special version of GNU GDB designed for oneAPI C/C++ applications.
On Linux, setvars.sh is located in /opt/intel/ oneapi/ for root or sudo installations by default.