Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Watch window for XCode debugging

Is there any watch window to see variable value in XCode during debugging? Can we check value just typing variable name as in watch window?

On mouse over, I can't see value for dictionary type objects. I see "Variables View" option but it has only first option enabled.
in "Debugger" window, I can't type variable name.
Watchpoint stops your program when the value of an expression changes. But I have to see value during breakpoint.

Let me know what is the best way to debug.

Thanks

like image 215
Brij Avatar asked Nov 13 '09 12:11

Brij


2 Answers

Alternatively, you can click the two little arrows in the mouseover description and select print. You can then see what the dictionary contains in the console.

like image 85
Mihai Damian Avatar answered Sep 20 '22 20:09

Mihai Damian


Use the Expression window. Run:Show:Expressions... Just type in the entry field the variable name or expression . You can also right click/hold on a variable name and in the drop-down menu select "Add to Expression Window".

like image 44
zaph Avatar answered Sep 20 '22 20:09

zaph