-
Notifications
You must be signed in to change notification settings - Fork 2
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.
The Visual Studio Debugger is provided with all installs of Microsoft Visual Studio.
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.
- Installation instructions
- Transitioning from SVN to GIT
- Compiling on your OS
- Connecting & Starting rAthena
- Scripting like a pro!
- Server Modifications and what to expect
- Database Configuration
- Adding Custom Items
- Adding Custom Monsters
- GRF Encryption
- Data folder
- Diff files