开发者

SharePoint Console Output

I made a class library, and put it in G开发者_JAVA百科AC. It has one C# code file, and I put a Console.WriteLine() statement in. When I run the Feature, where would I see the output from this statement?


Use

  • System.Diagnostics.Trace.WriteLine()

or

  • System.Diagnostics.Debug.WriteLine() (Will only output text if assembly compiled in debug mode)

to output some text. You would then see it in a program like DebugView.

But the best way to debug the program (if you ask this question regarding to debugging) i recommend attachking to SharePoint with Visual Studio debugger. Some debugging tips here.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜