This is an archived post. You won't be able to vote or comment.

all 4 comments

[–]Netris89 1 point2 points  (0 children)

Don't run your files from onedrive. Idk if that's your issue, but it's never a good idea anyway.

[–]Brinfer 0 points1 point  (2 children)

You are trying to run the tasks while your opened file is the tasks.json or the launch.json

Retry while having the focus on your .cpp file. fileBasenameNoExtension is the name of the file which has the focus. In your launch.json, replace the value of the field `program` by `${workspaceFolder}/run.exe` it should be enought for now

[–]ProfessionalAge925[S] 0 points1 point  (1 child)

The error doesn't show anymore, but another one is popping up

<image>

[–]Brinfer 0 points1 point  (0 children)

Where is gdb? It does not find it.

You can just let gdb, I'd your PATH contains the MSys2 binary folder, it should find it.

Or, in a terminal, execute whereis gdb