第7章 调试和错误处理

1 Visual Studio中的调试

   VS中分为调试模式和非调试模式,在VS执行应用程序时,默认在调试模式下执行。非调试选择Debug|Start Without Debugging / Crtl + F5。

1)输出调试信息:
①Debug.WriteLine();

②Trace.WriteLine();

    第一个命令仅在调试模式下运行,第二个命令还可以发布程序。

猜你喜欢

转载自www.cnblogs.com/Chatai/p/9267924.html