I have a global variable (I know) that is being changed from a good value to a bad value somewhere. I don't know where, and I'd like to find out where. I would like my debugger (Eclipse/PyDev) to break any time any code writes to this global variable, something akin to hardware breakpoints in OllyDBG.
One trick I've found that sometimes works in this situation is to refactor the variable as a property and then set a breakpoint in that property's setter: any access to the variable goes through the setter and I get what I want from the debugger. This isn't working in this case.
Ideas?