Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有 wcf 控制台应用程序服务器和控制台应用程序客户端。
如果客户端处于调试模式,我想将调试器附加到 WCF 服务器以调试服务器服务。
因此客户端将在启动时运行此代码:
if (Debugger.IsAttached) Debugger.AttachToProcess("WCFProcessName"); //<<How this is done
有可能这样做吗?