Skip to content

Question: track field access #1835

@piacenti

Description

@piacenti

I'm trying to intercept read access to class fields happening from some of its own methods. While I can easily do something like that by intercepting their getters, not all parts of the code access the fields using getters.

I've found several snippets trying to do more than that, generally altering behavior in some way and generally incomplete enough for me to try a different variant. I want to keep all original functionality but simply track what fields were read with their name and value.

Metadata

Metadata

Assignees

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions