Skip to content

Build and debug C++ with cl without needing to start vscode from the developer prompt #4742

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
rickywei opened this issue Dec 14, 2019 · 2 comments · May be fixed by #13571
Open

Build and debug C++ with cl without needing to start vscode from the developer prompt #4742

rickywei opened this issue Dec 14, 2019 · 2 comments · May be fixed by #13571
Assignees
Labels
Feature Request Language Service tasks/build/debug An issue relating to tasks.json (e.g. build issues)
Milestone

Comments

@rickywei
Copy link

image

@sean-mcmanus
Copy link
Contributor

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.

@sean-mcmanus sean-mcmanus added tasks/build/debug An issue relating to tasks.json (e.g. build issues) Feature Request Language Service labels Dec 16, 2019
@bobbrow bobbrow added this to the Backlog milestone Jan 9, 2020
@sean-mcmanus sean-mcmanus 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 Jul 30, 2020
@Colengms
Copy link
Contributor

Colengms commented 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.

@Colengms Colengms modified the milestones: Backlog, On Deck Apr 13, 2021
@bobbrow bobbrow self-assigned this Apr 30, 2025
@bobbrow bobbrow modified the milestones: On Deck, 1.26 Apr 30, 2025
@bobbrow bobbrow added this to cpptools Apr 30, 2025
@bobbrow bobbrow moved this to In progress in cpptools Apr 30, 2025
@bobbrow bobbrow moved this from In progress to Pull Request in cpptools Apr 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature Request Language Service tasks/build/debug An issue relating to tasks.json (e.g. build issues)
Projects
Status: Pull Request
4 participants