Getting Started: Visual Studio (WSL) - ANLAB-KAIST/KENSv3 GitHub Wiki
Prerequisites
- 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.
Project setup
- 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
Build and run (see CLI document for target explanation)
[!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)
Debugging
- Go to
TCPAssignment.cpp
and add a breakpoint - Build and run to run debugger