LoginSignup
29
30

More than 5 years have passed since last update.

Xcodeで例外が発生したときにブレークする

Posted at

unrecognized selectorで落ちた時に、どこで起きてんねん?って思うことあります。

調べたらBreaking on unrecognized selectorにあったのでXcode 4.6.1で確認しました。

1. Breakpoint Navigatorを開く

2. 左下の+ボタンを押し、Add Exception Breakpoint…を選択

3. Objecive-Cの例外でブレークする設定

C++の例外も選べる模様

4. ブレーきんぐ

ブレークしたくないときはBreakpoint Navigatorから該当ブレークポイントを右クリックでDisableにすれば有効・無効を切り替えられます。

Visual Studioにも似たような設定があります、あっちは例外クラスごとに止めるかどうか設定できますが、今のこところこれで十分。

29
30
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
29
30