

Open a Cygwin terminal, either from the Start menu or by running Cygwin.bat from the Cygwin installation folder. Alternatively, you can install a new instance of Cygwin in a different folder.

If you already have Cygwin installed, it’s a good idea to re-run the installer to make sure it has the latest available packages. I suggest moving the installer to the same folder where you installed Cygwin itself typically C:\cygwin or C:\cygwin64. The installer is an executable named either setup-x86.exe or setup-x86_64.exe, and you’ll need it to add or remove Cygwin packages in the future. We’ll add additional packages from the command line later.Īfter the Cygwin installer completes, it’s very important to keep the installer around. When you reach the “Select Packages” step (shown below), don’t bother selecting any packages yet. If your machine is located behind a proxy server, make sure to check “Use Internet Explorer Proxy Settings” when you get to the “Select Your Internet Connection” step. Cygwin’s setup wizard will walk you through a series of steps. There is already a pair of pre-made batch files for debugging the OHRRPGCE.First, download and run either the 32- or 64-bit version of the Cygwin installer, depending on your version of Windows. Or you can create a batch file with the same command in it. From a command-line prompt, you can type:Ĭ:\mingw\bin\gdb.exe program_to_debug.exe (These instructions are for mingw32, not the mingw-w64 fork. You can get the latest mingw installer here which can in turn install gdb.Īfter installing MinGW, run the "MinGW Installation Manager" (which for me was located in C:\MinGW\libexec\mingw-get\guimain.exe ) and then make sure that the mingw32-gdb bin package is installed. MinGW distributes a Windows version of gdb. If you are using Linux, you probably already have gdb, but if you are using Windows, you will need to install it.

When used together with gdb, it can provide useful information about crashes. The latest debug build of the OHRRPGCE is available here: ohrrpgce-wip-directx-sdl-debug.zip. 1 getting a debug build of the OHRRPGCE.
