Azure Sphere for VS Code
This preview release of the Azure Sphere extension adds support for developing Azure Sphere applications in VS Code, including editing, building, packaging, deploying, and debugging.
The settings added are described below in Extension Settings.
When changing the toolchain or compiler settings, you should clean your build. To clean, run command
Deploy and Debug
Press F5 or run command Debug: Open launch.json. Choose Azure Sphere (GDB) then either:
This preconfigures launch.json with necessary options and places you in the debug pane. Press F5 again and your application will be deployed and started in debug mode.
VS Code requires the Azure Sphere SDK for your platform:
The extension expects CMake and Ninja on the path to support builds.
This extension provides the setting
This extension uses the following settings in
On initial open of an Azure Sphere project folder, you will be prompted to select a CMake kit. Choose unspecified; the CMake toolchain file configures the compilers appropriately.
Simultaneous debug of HL and RT apps, or multiple RT apps, is not supported. Open separate instances of VS Code to debug HL and RT apps at the same time.
MacOS is not supported.
Data and telemetry
This extension collects usage data and sends it to Microsoft to help improve our products and services. Collection of telemetry is controlled via the same setting provided by Visual Studio Code: