Skip to content

Template project to pogram, build, and debug kernels from Window's Visual Studio.

License

Notifications You must be signed in to change notification settings

Jacquwes/osdev-vs-template

Repository files navigation

OS Dev on Visual Studio made easy

This is a template project for OS development on Visual Studio. It is based on obos and limine.

I wish I found something like this earlier, so I hope it helps someone else.

Prerequisites

Getting started

  1. Clone this repository with submodules.
git clone --recurse-submodules https://github.com/jacquwest/osdev-vs-template.git
  1. Build limine executable in wsl.
cd osdev-vs-template/limine
make
  1. Edit .vs/launch.vs.json to match your configuration. Many macros don't work.

    • configurations[0].customLaunchSetupCommands[0].text
    • configurations[0].remotePrelaunchCommand iso on linux should be in ~/.vs/osdev-vs-template/project-hash/out/build/Linux-GCC-Debug/osdev-vs-template
  2. Edit CMakeSettings.json to match your configuration.

    • `configurations[0].variables[0].value
  3. Switch target to debug-qemu in Visual Studio and run. Make sure you have a ssh server running on your wsl instance.

About

Template project to pogram, build, and debug kernels from Window's Visual Studio.

Topics

Resources

License

Stars

Watchers

Forks