Skip to content

Visual Studio Debugger

Aleos edited this page Jan 17, 2019 · 2 revisions

title: Visual Studio Debugger permalink: /Visual Studio Debugger/

The Visual Studio has a built in debugger that will attach to a server of your choice (login, char, map). Using this debugger can help resolve situations where a server is crashing with little information provided.

Getting Visual Studio Debugger

The Visual Studio Debugger is provided with all installs of Microsoft Visual Studio.

Using VS Debugger with rAthena

Start rAthena with VS Debugger

When you can reproduce a crash, it's often useful to directly start rAthena from VS Debugger. Compile your rAthena solution. Once it's done right click the server that is crashing (login, char, map) from the Solution Explorer and select Debug > Start Instance. Now that the selected server is running in debug mode, execute the runserver.bat file to start the other two servers in a normal state.

At this point we can reproduce the crash. Once the crash has been achieved, a window will open asking if you want to break or continue. Click continue once and then break when the second window pops up. This should now take you to the location of the crash point.

Sometimes these locations are C/C++ libraries, so make sure you navigate to the last rAthena function called. This can easily be done by looking at the bottom of your MSVS display and following the Call Stack. Double clicking on each entry will take you to the location.

If you feel that is a development problem, submit a bug with the full report given by MSVS and one of the core developers can look into it.

See Also

Category:Debugging

Home

Getting Started

Configure your Server

Customization

Setup the Client

Misc Databases

Third-Party Software

Clone this wiki locally