Search code examples
visual-studioremote-debuggingvisual-studio-debugging

how to debug app on real domain with using visual studio


I have .NET Framework 4.6.1 app, I know just domain name of staging site "example.com" and have source code.

And I have error on staging but locally it works fine.

So I want to debug app on that domain.

Can I debug app on real domain?

I've tried something with "Attach to Process" but no success.

If I can debug, how can I do that?

Thanks in advance.


Solution

  • Actually, as derpirscher said, you should use Remote debugger to debug your project with that domain.

    Make sure that your sever and your PC are under the same network. Then share(copy) the remote debugger folder from VS into the remote domain machine. Run msvsmon.exe on the remote server. And then you can debug the project under the domain sever.

    Anyway, to use VS IDE to debug projects on other domain machines, you must ensure that msvsmon.exe(remote debugging tool) is installed and started on the remote machine, that means you must be able to access the domain computer otherwise there is nothing you can do. See this document.

    Here is a document about remote debugging a c# app.