Skip to content

Do not create tasks.json when creating debug configuration for gcc build active file #5270

Description

@NaLaDcP

Type: Debugger

Describe the bug

  • OS and Version:Ubuntu 18.04.4
  • VS Code Version: 1.43.2
  • C/C++ Extension Version: 0.27.0
  • 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:

  1. Install C/C++ extension ms-vscode.cpptools
  2. Start debugging
  3. Select environment: C++(GDB/LLDB)
  4. 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

  1. bobbrow commented on Sep 24, 2020

    @bobbrow
    Contributor

    Elaheh Rashedi (@elahehrashedi) did you fix this with your build tasks change?

  2. elahehrashedi commented on Sep 28, 2020

    @elahehrashedi
    Contributor

    This is fixed in the new build task changes. Will be available in C/C++ Extension Version: 1.1.0.

  3. sean-mcmanus commented on Oct 14, 2020

    @sean-mcmanus
    Contributor

    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.

  4. locked and limited conversation to collaborators on Dec 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

fixedCheck the Milestone for the release in which the fix is or will be available.tasks/build/debugAn issue relating to tasks.json (e.g. build issues)

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions