Trace on Variable assignment
Fri Nov 3 14:10:10 CET 2000
> > I had more in mind though being able to set up traces (or
> > watchpoints if you like) in a running system without
> needing to change the
> > code.
> What about a guard: watch/1 which could be combined with
> the trace bif ?
> Just a thought... /Tobbe
I'm thinking about the situation when the customer/local support guys are
asked to run a trace to feed back info about their system to a
supplier/developer. You could generate a patch and get them to load it, but
even better would be able to send them something to type at the shell to do
"Every time the transaction ID is divisible by 100, print that value and the
values of these other variables". The equivalent AXE-10 ese would be
on var a do: print var a, pr var b, print ia, pri time;
(my memory is a bit rusty so this probably isn't quite the right syntax)
ia would be instruction address i.e. where in the code the variable is set
or changed - our equivalent of m:f :-))
AXE10 doesn't have selective tracing on vars, they just limit the size of a
trace buffer, so we could do even better.
NOTICE AND DISCLAIMER:
This email (including attachments) is confidential. If you have received
this email in error please notify the sender immediately and delete this
email from your system without copying or disseminating it or placing any
reliance upon its contents. We cannot accept liability for any breaches of
confidence arising through use of email. Any opinions expressed in this
email (including attachments) are those of the author and do not necessarily
reflect our opinions. We will not accept responsibility for any commitments
made by our employees outside the scope of our business. We do not warrant
the accuracy or completeness of such information.
More information about the erlang-questions