How to debug property without set / get ? ( breakpoint ) Mateusz Kurowski Created May 03, 2024 19:04 How do i debug setter of this variable ? How do I set breakpoint there?
Hi Mateusz!
This is not possible by language structure. Could you please provide more details about your case?
Thanks!
Hey!
If there's ‘setter’ or ‘getter’ I can set a breakpoint.
In this case the value can be set / get but I cannot set a breakpoint for this.
This is external code so I cannot modify it.
Does it answer your question?
Regards
Hi Mateusz!
In this case, you can set a breakpoint to the exact moment before the value is set/get and step into it.
That's exactly the point why I want to hook in there :)
I don't know the exact moments before the value is set/get…
Hi Mateusz!
I've dug around, and here are several ways to do this:
- add watch to this variable so can check its state in the debug tool window.
- use Search Everywhere to find where this variable initialised and set a breakpoint on it.
I hope some of these will help!
Thank you Alexandra but they are all workarounds!
I will try next time, maybe we could make it a feature request?
Hi Mateusz!
Here you are; feel free to upvote.
Thank you:)