XCode Debugging - how to observe a certain object without breakpoint -


let's there object want keep eye on, meaning want know current values of member fields of object while use app - can somehow without having set breakpoint within routine has reference object?

for example, somehow possible breaking debugger in moment object created, somehow keep open view particular object within debugger see how variables change?

i know it's possible set watchpoints break whenever variable changes, becomes difficult work variables change - i'd rather have live view of objects content.

hope question understandable.

good thought. been long time after question asked.

off course it possible. can use watchpoints in xcode 5 onwards. watchpoints pause program if value getting accessed.

you can set watchpoints in 2 ways given below.

(1) use following lldb command

(lldb)  w s v self->_your_variable 

(2) select left debugging pane. select variable want watch, select on option watch "_your_variable".

hope you.


Comments

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -