Skip to content

Instantly share code, notes, and snippets.

View rohitsardessai's full-sized avatar

Rohit Sardessai rohitsardessai

View GitHub Profile
@rohitsardessai
rohitsardessai / tasks.json
Last active July 11, 2023 20:17
VSCode tasks.json file for debugging and testing a c program. The first task builds the program and creates an executable. The second task runs the program with valgrind to check for memory leaks. The executable is saved in a /build directory. The third, fourth and fifth are to be used with CMake.
{
"tasks": [
{
"type": "cppbuild",
"label": "R: C/C++: gcc-11 build active file",
"command": "/usr/bin/gcc-11",
"args": [
"-fdiagnostics-color=always",
"-g",
"${fileDirname}/**.c",