-
Notifications
You must be signed in to change notification settings - Fork 25
Getting Started: Visual Studio (WSL)
Wonsup Yoon edited this page Mar 21, 2024
·
4 revisions
- Install WSL. WSL 2 is not tested. We recommend Debian 10 or Ubuntu 20.04.
- Install development tools in WSL.
sudo apt update && sudo apt install -y g++ gdb make ninja-build rsync zip
- Install Visual Studio 2019. Other versions are not tested.
- Install "Desktop development with C++" and "Linux development with C++" (including "C++ CMake tools for Linux") workloads using Visual Studio Installer.
- Download and extract latest version.
- Open extracted folder via "Open a local folder"
- "Manage Configurations..."
- Remove "x64-Debug" and add "WSL-GCC-Debug"
-
Save file
-
Select yes to automatically download and install CMake
-
Project setup complete
Note
- To change random seed, please follow CLI instruction: Getting Started: CLI (Linux)
- Select target to run
- Build and run selected target. (Open Linux Console Window via Debug > Linux Console)
- Go to
TCPAssignment.cpp
and add a breakpoint - Build and run to run debugger