From e81b7e91a300efcf3aac59a1b725aa1b7ac5677b Mon Sep 17 00:00:00 2001 From: Kitzunu <24550914+Kitzunu@users.noreply.github.com> Date: Thu, 3 Jun 2021 02:43:07 +0200 Subject: feat: run-worldserver-and-authserver-in-visual-studio.md (#505) * feat: run-worldserver-and-authserver-in-visual-studio.md * just to see if img size is ok --- docs/documentation_index.md | 1 + ...-worldserver-and-authserver-in-visual-studio.md | 51 +++++++++++++++++++++ ...rldserver-and-authserver-in-visual-studio-1.JPG | Bin 0 -> 18142 bytes ...rldserver-and-authserver-in-visual-studio-2.jpg | Bin 0 -> 323710 bytes ...rldserver-and-authserver-in-visual-studio-3.jpg | Bin 0 -> 356714 bytes 5 files changed, 52 insertions(+) create mode 100644 docs/run-worldserver-and-authserver-in-visual-studio.md create mode 100644 images/run-worldserver-and-authserver-in-visual-studio-1.JPG create mode 100644 images/run-worldserver-and-authserver-in-visual-studio-2.jpg create mode 100644 images/run-worldserver-and-authserver-in-visual-studio-3.jpg diff --git a/docs/documentation_index.md b/docs/documentation_index.md index d65ac35..4f8946d 100644 --- a/docs/documentation_index.md +++ b/docs/documentation_index.md @@ -33,6 +33,7 @@ ## Recipes & Techniques * [How to import DBC data into SQL](how-to-import-dbc-data-in-db.md) +* [Run Worldserver and Authserver in Visual Studio](run-worldserver-and-authserver-in-visual-studio.md) ## External resources diff --git a/docs/run-worldserver-and-authserver-in-visual-studio.md b/docs/run-worldserver-and-authserver-in-visual-studio.md new file mode 100644 index 0000000..02d2758 --- /dev/null +++ b/docs/run-worldserver-and-authserver-in-visual-studio.md @@ -0,0 +1,51 @@ +# Run Worldserver and Authserver in Visual Studio + +Running the Worldserver and Authserver through Visual Studio has some benefits. + +1. You can easily debug code using breakpoints or easily finding the Call Stack of a crash. + + 1. It will also let your server pause instead of crashing when you hit a crash, and you can easily just continue after your debugging. + +1. If you are working on the code, this can save you time when you need to go in-game to test as you wouldn't need to open your binaries folder and start them induvidually. + +## Configuring Visual Studio + +1. Choose the desired build configuration, in this guide we will refer to Debug. + + + + + +1. Right-click **Solution 'AzerothCore' (20 of 20 projects)**. + + 1. Select **Properties**. + + 1. Select **Multiple Startup Projects**. + + 1. In the dropdown menu, select **Start** for **authserver** and **worldserver**. + + + + + +1. Right-click **authserver**. + + 1. Select **Properties**. + + 1. Select **Debugging**. + + 1. In **Command Arguments** choose your path to the .conf file for your Debug build. + + 1. In **Working Directory** choose your path to the directory of your binaries. + + + + + +1. Do step 3. for **worldserver** as well. + +1. Starting the Worldserver and Authserver. + + 1. Press the **Start** button or **F5** to launch Worldserver and Authserver within Visual Studio. (This is good for debugging) + + 1. Press **Ctrl + F5** to start Worldserver and Authserver outside of Visual Studio diff --git a/images/run-worldserver-and-authserver-in-visual-studio-1.JPG b/images/run-worldserver-and-authserver-in-visual-studio-1.JPG new file mode 100644 index 0000000..1d30484 Binary files /dev/null and b/images/run-worldserver-and-authserver-in-visual-studio-1.JPG differ diff --git a/images/run-worldserver-and-authserver-in-visual-studio-2.jpg b/images/run-worldserver-and-authserver-in-visual-studio-2.jpg new file mode 100644 index 0000000..c956987 Binary files /dev/null and b/images/run-worldserver-and-authserver-in-visual-studio-2.jpg differ diff --git a/images/run-worldserver-and-authserver-in-visual-studio-3.jpg b/images/run-worldserver-and-authserver-in-visual-studio-3.jpg new file mode 100644 index 0000000..cfe9ad9 Binary files /dev/null and b/images/run-worldserver-and-authserver-in-visual-studio-3.jpg differ -- cgit