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
Do not create tasks.json when creating debug configuration for gcc build active file #5270
Other extensions you installed (and if the issue persists after disabling them): Python and LiveShare, issue persistts after disabling the extensions
A clear and concise description of what the bug is.
Please include a code sample and launch.json configuration.
` launch.json.txt
`
Steps to Reproduce:
Install C/C++ extension ms-vscode.cpptools
Start debugging
Select environment: C++(GDB/LLDB)
Select gcc run and debug active file
A launch.json file is created but no tasks.json. So it does not compile before starting the debugger. I tried to do it by hand by going to Menu -> Terminal -> Configure tasks -> Create tasks.json file from template I do not have such option for creating tasks.json for 'gcc build active file'
Additional context If applicable, please include logging by adding "logging": { "engineLogging": true, "trace": true, "traceResponse": true } in your launch.json
Add any other context about the problem here including log or error messages in your Debug Console or Output windows.
Activity
bobbrow commentedon Sep 24, 2020
Elaheh Rashedi (@elahehrashedi) did you fix this with your build tasks change?
elahehrashedi commentedon Sep 28, 2020
This is fixed in the new build task changes. Will be available in C/C++ Extension Version: 1.1.0.
sean-mcmanus commentedon Oct 14, 2020
With https://github.com/microsoft/vscode-cpptools/releases/tag/1.1.0-insiders this is fixed for tasks.json, but not launch.json -- seems like VS Code doesn't yet have a way to fix the launch.json case, other than us adding text to the end of the launch.json name/lable.