Can't execute my first C++ program on VScode : gdb launch error

Anonymous
2024-03-11T14:30:08.66+00:00

Hi,

I am trying to run my first program on VScode.

I am getting the gdb launch error (Select a debug configuration). This happens when I click the trainagle for running the C++ program.

Somebody please guide me.

I have added the image

gdb launch error

Zulfi.

Developer technologies | C++
Developer technologies | C++
A high-level, general-purpose programming language, created as an extension of the C programming language, that has object-oriented, generic, and functional features in addition to facilities for low-level memory manipulation.
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 81,981 Reputation points Volunteer Moderator
    2024-03-11T15:14:09.2066667+00:00

    Did you install the GNU compiler?

    https://www.gdbtutorial.com/tutorial/how-install-gdb


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.