附加控制台运行ASP.NET应用程序控制台、应用程序、ASP、NET

由网友(我自己会捡起来)分享简介:让我们说我有一个图书馆,我在其中添加了一些 Console.WriteLine(..)语句来帮助我在执行过程中,看看发生了什么事情时,我使用的库在一个控制台应用程序。 Let’s say I have a library, in which I added a few Console.WriteLine(..) st...

让我们说我有一个图书馆,我在其中添加了一些 Console.WriteLine(..)语句来帮助我在执行过程中,看看发生了什么事情时,我使用的库在一个控制台应用程序。

Let’s say I have a library, in which I added a few Console.WriteLine(..) statements to help me out during the implementation and see what’s going on when I use the library in a Console App.

现在我想用相同的库在ASP.NET应用程序。理想情况下,我将能够登录到生产网络服务器,并以某种方式启动命令提示符,然后将其连接到该网站,看到的消息,实时,因为它们发生。我该怎么办呢?

Now I want to use the same library in an ASP.NET app. Ideally I would be able to log on to the production webserver, and somehow start a command prompt and attach it to the website and see the messages in real time as they occur. How do I do that?

推荐答案

我不知道它的工作原理与ASP.Net,但您可以使用Trace.WriteLine而不是Console.WriteLine,然后使用的 DebugView中因为他们碰巧浏览痕迹

I'm not sure it works with ASP.Net, but you can use Trace.WriteLine instead of Console.WriteLine and then use DebugView to view the traces as they happen.

阅读全文

相关推荐

最新文章