Skip to content

[macOs] Build and Debug Active file fails with PreLaunch task 'Build' terminated with exit code 1. #3911

@NasserAlhouti

Description

@NasserAlhouti

I'm having issues trying to get Clang ++ debugger to work I've followed the instructions on the website https://code.visualstudio.com/docs/languages/cpp I got the intellisense, I compiled my C++ using g++ followed by -g and the file path as shown
nasser$ g++ -g /Users/nasseralhouti/algo/twoSumNumber.cpp
this created an a.out file under my .vscode directory
I set the debugger to c++ build and debug active
but when I run the debugger it outputs PreLaunch task 'Build' terminated with exit code 1.
so I'm assuming it's something in my tasks.json file which is
Screen Shot 2019-07-10 at 8 26 20 PM

since this was preconfigured I'm not really sure how it works
since the intelisense is working I'm assuming my /Users/nasseralhouti/algo/.vscode/c_cpp_properties.json
works fine
so does it have to do with my tasks.json not finding the xcode path debugger ?
looking at the lauch.json I'm not really sure what's it used for
Screen Shot 2019-07-10 at 8 19 57 PM

I would like the problem to be resolved but more importantly understand how my json files are configured so that I could figure out how to fix future configurations problems like debugging in dart or angular.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions