> For the complete documentation index, see [llms.txt](https://docs.wisej.com/deployment/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.wisej.com/deployment/concepts/server-debugging.md).

# Server Debugging

Sometimes you may need to debug an application in production. Which means you have to debug the server, somehow.

The best way is to install Visual Studio on the server and attach to the web server process (for IIS) or to the application's process when deployed as a [standalone ](/deployment/targets/standalone.md)app.

### Remote Debugging

Visual Studio supports remote debugging, allowing you to connect to the production machine with  Visual Studio running on your development machine.

{% embed url="<https://docs.microsoft.com/en-us/visualstudio/debugger/remote-debugging?view=vs-2019>" %}

{% hint style="info" %}
Please note that some Azure deployments support Visual Studio remote debugging natively, you just and to enable it.
{% endhint %}
