Trace on Variable assignment

Sean Hinde Sean.Hinde@REDACTED
Fri Nov 3 12:21:26 CET 2000


Thanks for the suggestions, they are neater than io:format everywhere for
debugging :)

I had more in mind though being able to set up traces (or conditional
watchpoints if you like) in a running system without needing to change the
code.

I don't think it should introduce too much overhead - 1 bit set per variable
which is checked on each assignment to that variable.. The match syntax
would seem to offer a plenty rich enough selection method for setting
conditions after this initial trigger.

Sean

> -----Original Message-----
> From: Torbjorn Tornkvist [mailto:tobbe@REDACTED]
> Sent: 3 November 2000 06:37
> To: Scott Lystig Fritchie
> Cc: erlang-questions@REDACTED
> Subject: Re: Trace on Variable assignment
> 
> 
> 
> Ok, here is a possible workaround:
> 
> It is possible to write conditional breakpoints in the debugger.
> However, in a complex system it may not be possible to 'stop'
> the execution at a break point. The solution is to write the
> conditional break point so that it sends a message somewhere
> and have it always return false (i.e it won't trigger the
> debugger). 
> 
> Cheers /Tobbe
> 



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 mailing list