Xcode Debugger: view value of variable

前端 未结 7 773
囚心锁ツ
囚心锁ツ 2020-12-12 14:45

My code in a UITableViewController:

delegate.myData = [myData objectAtIndex:indexPath.row];

How can I see the values of delegate.myDa

7条回答
  •  醉梦人生
    2020-12-12 15:22

    You can print values onto console window at run-time. Below are steps :

    1. Place a break-point for which you want to get values
    2. Now perform step-by-step debug.
    3. Place a cursor on variable/delegate whose value is to be checked at run-time.
    4. Now this will show description of variable/delegate
    5. Clicking on "i" will show detailed description
    6. This will also print details onto console window.

    Screenshot for printing details on console window

提交回复
热议问题