开发者

SharePoint Console Output

开发者 https://www.devze.com 2022-12-22 03:05 出处:网络
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.

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

精彩评论

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

关注公众号