Category : vscode-debugger

I’m trying to configure VSCode for compiling/debugging C++ programs on MacOS. I am using the following launch.json file: When I try and start a debugging session, I get the following error: Warning: Debuggee TargetArchitecture not detected, assuming x86_64. ERROR: Unable to start debugging. Unexpected LLDB output from command "-exec-run". process exited with status -1 (attach ..

Read more

I’m trying to debug a program written in c++ using gdb from vscode. When the debugger calls the function ifstream() from the header fstream, it’s unable to find the header file because gdb is looking for it on the directory /build/gcc/src/gcc-build/x86_64-pc-linux-gnu/libstdc++-v3/include/ , which doesn’t exist and results in wrong code execution. I’ve fixed this by ..

Read more

I get this error The Prelaunch task build terminated with exit code 1 in VSCode when I try to run a simple code using MinGW. I’m not familiar with launch.json and tasks.json. Is there anything wrong with them? main.cpp: #include <iostream> #include "mainn.hpp" int main() { std::cout << "Hello, World!" <<std::endl; BA BankAccount; BankAccount.setAge(20); } ..

Read more

I’ve installed OpenCV On Ubuntu successfully and I managed to run a sample code as: g++ main.cpp -o testoutput -std=c++11 `pkg-config –cflags –libs opencv` I’ve tried to run it with Visual Studio Code, I’ve installed the extension of C/C++ and code runner and ran it with the following configuration: tasks.json: { "tasks": [ { "type": ..

Read more