debug調試
release釋出
pdb檔案:程式資料庫檔案Program Database File
vshost.exe檔案:宿主程序檔案VS host process
vshost.exe.manifest檔案:xml檔案
release版本中不生成pdb和vshost檔案的方法:
![](https://img.laitimes.com/img/__Qf2AjLwojIjJCLyojI0JCLicGcq5SYwEDO5gDO0UGM1IDMzETY3E2N0EDN3QGNlVGZmJWOw8CX5d2bs92Yl1iclB3bsVmdlR2LcNWaw9CXt92Yu4GZjlGbh5yYjV3Lc9CX6MHc0RHaiojIsJye.jpg)
引入命名空間:using System.Diagnostics;
Debug.WriteLine("debug write");
Trace.WriteLine("trace write");
設定“解決方案配置”為debug模式,則兩條都會輸出,
若為release模式,則隻會輸出trace語句
代碼語句上右鍵可快速設定跟蹤點。