I'm thinking about how to debug better without using Getters/Setters. If it helps, I program using xcode.
Many answers in Stack Exchange have argued against Getters/Setters for lack of encapsulation (read: When are Getters and Setters Justified), but my reasoning for now is that I use them for easier debugging; setting a break-point at the getter/setter is way easier than hunting down every point where the variable is accessed.
Smart naming partially solves this problem since I can quickly search for the variable name, but doesn't solve my issue of having to find every access/modification of the variable; I still have to set break-points everywhere.
Is there an easy way to avoid getters and setters whilst discovering when my variables are modified/accessed in an easy way?
PS. I hope I'm not making some stupid rookie mistake, or being ignorant of some cheap and simple xcode hack here.
Edit: Maybe I should elaborate a little more. Often, the variables I want to check on are directly accessed/modified. I just want to know when the variable is accessed/modified easily.