This is very helpful Saq!
One more question, can I log only local variables, those are created in the scope of work (explicitly I see them in the code or implicitly? Sometimes I do not know what other variables are accessible to the scope I am working! May be we can divide them into
- global variables: defined outside the scope but are available everywhere
- local variables: those are explicitly defined by user or implicitly by system