User-166373564 posted
Hi,
" I'd like to publish a debug build and attach visual studio to it remotely, is this possible?"
Yes,you can deploy an ASP.NET Web application to a Windows Server 2008 R2 computer with IIS,and set it up for remote debugging.
Please refer to Remote Debugging ASP.NET
https://msdn.microsoft.com/en-us/library/mt621540.aspx
Best regards,
Angie