You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Build and debug C++ with cl without needing to start vscode from the developer prompt #4742
If you want to build with cl.exe, you need to run it from the developer command prompt. We had an issue tracking removing that requirement, but I'm not able to locate it, so we could use this issue track that.
changed the title [-]How to debug c++ with cl and do not need to start vscode from developer prompt[/-][+]Build and debug C++ with cl without needing to start vscode from the developer prompt[/+]on Jul 30, 2020
The cppbuild task provider could configure the environment, perhaps using code currently in CMake Tools to find the devbat script, or through a setting that indicates which version/install of VS to get the script from.
Activity
sean-mcmanus commentedon Dec 16, 2019
If you want to build with cl.exe, you need to run it from the developer command prompt. We had an issue tracking removing that requirement, but I'm not able to locate it, so we could use this issue track that.
[-]How to debug c++ with cl and do not need to start vscode from developer prompt[/-][+]Build and debug C++ with cl without needing to start vscode from the developer prompt[/+]Colengms commentedon Apr 13, 2021
A user proposed the following solution: microsoft/vscode-docs#4437
The cppbuild task provider could configure the environment, perhaps using code currently in CMake Tools to find the devbat script, or through a setting that indicates which version/install of VS to get the script from.
sean-mcmanus commentedon Nov 4, 2025
Fixed with https://github.com/microsoft/vscode-cpptools/releases/tag/v1.29.0 (pre-release)