Skip to content
Discussion options

You must be logged in to vote

Hi @Saqlain532,

Thank you for reaching out! I understand that you're having trouble with the "play button" (Run/Debug button) in Visual Studio Code (VS Code) for C/C++ programs, while it works fine for Python. Let’s troubleshoot and resolve this issue step by step.

  1. Check Your Build Configuration
    The error indicates that the build process is failing. Ensure that your tasks.json file (located in the .vscode folder) is correctly configured to compile your C/C++ code. Here’s an example configuration for tasks.json:
**json**
{
    "version": "2.0.0",
    "tasks": [
        {
            "label": "build",
            "type": "shell",
            "command": "gcc",
            "args": [
       …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Saqlain532
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Copilot Code accurately and faster with your AI powered pair-programmer. Show & Tell Discussions where community members share their projects, experiments, or accomplishments
2 participants