When you are back in your code, go to My Configurations, click on Manage Configuration, and add a new configuration so you can target WSL right from Visual Studio.
Just follow the instructions to get a full installation of your favorite Linux distribution.
If it is not added to your "Path", you will have to run gdbgui with the path explicitly called out, such as gdbgui -g C:\MinGW\bin\gdb.exe. To install WSL, go to on your web browser. The application name uses the same prefix/suffix as the compiler (for example, the debugger for embedded applications is arm-none-eabi-gdb). C:\MinGW\bin\) is on your "Path" environment variable: Go to Control Panel > System Properties > Environment Variables > System Variables > Path and make sure C:\MinGW\bin\ is added to that list. The GDB client (GDB stands for GNU Debugger) is part of the GNU Toolchains, and is located in the same folder as all GNU toolchain binaries (compiler, linker, etc). For example C:\MinGW\bin\gdb.exe, C:\MinGW\bin\mingw32-make.exe, etc.Įnsure this MinGW binary directory (i.e. It will install to somewhere like C:\MinGW\bin\. This is the default package which contains make, gcc, and gdb. Install MinGW with the "MinGW Base System" package. Minimal GNU for Windows ( MinGW) is the recommended Windows option. If you do not have already have gdb/make/gcc installed, there are two options to install them on Windows: MinGW and cygwin. Note that windows is only supported for gdbgui versions less than 0.14. Please check gdb is codesigned - see taskgated(8). MacOS users must also codesign gdb: follow these Brew install gdb -with-python -with-all-targets