Skip to content

Recommended VSCode configurations for C++ debugging in CSE 232

License

Notifications You must be signed in to change notification settings

CSE232-MSU/CSE232-VSCCONF

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CSE232-VSCCONF

Recommended VSCode configurations for C++ debugging in CSE 232

Downloading these files can be done using the given curl commands. The curl (or, "cURL") program is a command-line tool used to transfer data from network protocols. This GitHub repository is simply a host for these configuration files.

Please use the configuration that corresponds to your operating system.

MacOS

Important: requires that you have the CodeLLDB extension made by Vadim Chugunov.

Contains a launch.json, tasks.json, and c_cpp_properties.json file for C++ debugging on MacOS systems (clang++ with lldb). Contains a single and multi-file configuration.

c_cpp_properties.json is included to set VSCode's C++ linting version to C++ 17. The linter will not default to the latest C++ version on MacOS, for whatever reason.

Execute the following commands one-by-one, after changing your directory to the folder where you want to debug some files:

mkdir .vscode
cd .vscode
curl --remote-name-all https://raw.githubusercontent.com/CSE232-MSU/CSE232-VSCCONF/main/macos/{launch.json,tasks.json,c_cpp_properties.json}
cd ..

This will create a .vscode folder if one doesn't exist, change directories to the .vscode folder, download the configuration files, and back out of the .vscode folder.

Windows

Contains a launch.json and tasks.json file for C++ debugging on Windows systems with WSL (g++ with gdb). Contains a single and multi-file configuration.

Execute the following commands one-by-one, after changing your directory to the folder where you want to debug some files:

mkdir .vscode
cd .vscode
curl --remote-name-all https://raw.githubusercontent.com/CSE232-MSU/CSE232-VSCCONF/main/windows/{launch.json,tasks.json}
cd ..

This will create a .vscode folder if one doesn't exist, change directories to the .vscode folder, download the configuration files, and back out of the .vscode folder.

GDB will step into C++ source code by default. To avoid this, I also recommend downloading the GDB configuration file below.

This will download the file to your home directory, and rename it to .gdbinit for GDB to discover. You should only need to download this file once unless it's removed.

curl -o ~/.gdbinit https://raw.githubusercontent.com/CSE232-MSU/CSE232-VSCCONF/main/gdbinit

About

Recommended VSCode configurations for C++ debugging in CSE 232

Resources

License

Stars

Watchers

Forks

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy