# 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 %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.wisej.com/deployment/concepts/server-debugging.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
