看板
[ C_Sharp ]
討論串[問題] try , catch 找系統問題
共 2 篇文章
首頁
上一頁
1
下一頁
尾頁
內容預覽:
try/catch不是讓你debug用的,. 如果你真的有bug, 你應該讓他成為unhandled exception然後crash into debugger. 然後你就可以在debugger裡面檢查你的exception object. 即使你的exception最後會被handle, 你也可
(還有216個字)
內容預覽:
用 try 和 catch 找系統bug問題. (1)如果我現在輸入的資料格式是錯誤的,就顯示 Bad input!. 我在 catch 那邊寫. catch(這邊要怎麼寫?). {. Console.WriteLine("Bad input!");. }. 這樣寫 show 不出來 Bad inp
(還有144個字)
首頁
上一頁
1
下一頁
尾頁