LoginSignup
3
3

More than 5 years have passed since last update.

C#でのデバッグ

Last updated at Posted at 2019-03-27

Debugクラス

Debugクラスの下記のメソッドが役立つ。
* Assert():条件不成立を監視する
* Indent():インデントする
* WriteLineIf():条件が成立する時に出力する

Deguggerクラス

  • Launch():デバッガを起動する

StackFrameクラス

  • GetMethod().Name:メソッド名を取得する

イミディエイトウィンドウ

  • コレクションやプロパティの多いオブジェクトを確認する時に便利

ブレークポイント:条件式

  • 文字列の比較でもブレークできる  例: exam.Name == "データベーススペシャリスト"
3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3