A spare time project to experiment with some SOLID principles and testing them with GTest/GMock. Ended up also being a crash course in VSCode tasks and launch configurations.
Attempted to follow the Google coding style guide, too...
- Follow the official guide to setup MinGW and GCC in VSCode
- Using MSYS, also install GDB
- Install the recommended plugins in the MinGW tutorial
- Install the tasks in status bar plugin (for convenience)
- Open this directory in VSCode.
- Open
settings.jsonand update"project.gdbPath"to point to your gdb installation (if necessary). - Run the task 'build (debug)'.
- Set a breakpoint somewhere in the main.cpp file.
- Go to the run menu, run the launch configuration 'Run (Debug)'.
- Watch it launch and catch at the breakpoint.
- Try again with 'Run Tests (Debug).
You can also build a release version by using the task 'build' and run it with 'Run (Release)'