<?xml version="1.0"?>
<rss version="2.0"><channel><title>Wiki: Wiki</title><link>https://www.getmangos.eu/wiki/tutorials/debugging/?d=4</link><description>Wiki: Wiki</description><language>en</language><item><title>Inspecting the server process</title><link>https://www.getmangos.eu/wiki/tutorials/debugging/inspecting-the-server-process-r40017/</link><description><![CDATA[<p>
	You can better identify problems that affect the world server (mangosd) using this process.
</p>

<p>
	<br />
	Do this by attaching to the running process from a Microsoft Visual Studio (MSVS) instance with the code project repository downloaded, configured, and the Solution (sln) file opened.<br />
	The keyboard shortcut for this should be "Ctrl+Alt+P", and other instructions for performing this in the IDE can be viewed here: <a href="https://learn.microsoft.com/en-us/visualstudio/debugger/attach-to-running-processes-with-the-visual-studio-debugger?view=vs-2022" rel="external nofollow">Microsoft - Attach to running processes with the Visual Studio debugger</a><br />
	<br />
	I'm not sure that you can do this with any other IDE yet, but there have been several similar packages that accomplish this function for the now unsupported Atom editor, with examples such as PHP xdebug functionality.  Also unsure if this can be accomplished using Visual Studio Code or not.
</p>

<p>
	<span>If this does not work, or seems strange, make sure the version of the project matches the server, and the server has the associated symbol (pdb) files that match the executable you want to inspect.</span>
</p>

<p>
	Once connected, you can set breakpoints and view the process state when those are encountered.
</p>

<p>
	 
</p>
]]></description><guid isPermaLink="false">40017</guid><pubDate>Thu, 16 Feb 2023 04:24:44 +0000</pubDate></item></channel></rss>
