How to debug property without set / get ? ( breakpoint )

 

How do i debug setter of this variable ? How do I set breakpoint there?

0
8 comments

Hi Mateusz! 

This is not possible by language structure. Could you please provide more details about your case? 

Thanks! 

0

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 

0

Hi Mateusz!

In this case, you can set a breakpoint to the exact moment before the value is set/get and step into it. 

0

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…

0

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! 

0

Thank you Alexandra but they are all workarounds!
I will try next time, maybe we could make it a feature request?

0

Hi Mateusz!

Here you are; feel free to upvote. 

0

Please sign in to leave a comment.