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.
精彩评论