<div dir="ltr">Hello!<br><div class="gmail_extra"><br><div class="gmail_quote">On Sun, Oct 4, 2015 at 3:45 AM, Leo Liu <span dir="ltr"><<a href="mailto:sdl.web@gmail.com" target="_blank">sdl.web@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hi there,<br>
<br>
I check the source for dbg:stop/0 and it flushes trace messages and then<br>
stops the `dbg' process. However the doc says:<br>
<br>
--------------------------------<br>
stop() -> ok<br>
<br>
Stops the dbg server and clears all trace flags for all processes and<br>
all trace patterns for all functions. Also shuts down all trace clients<br>
and closes all trace ports.<br>
<br>
Note that no trace patterns are affected by this function.<br>
--------------------------------<br>
<br>
where is this ``clears all trace flags for all processes and all trace<br>
patterns for all functions'' implemented? </blockquote><div><br></div><div>The clearing of trace flags for processes happens automatically by the vm when the tracer process is terminated. The clearing of trace patterns is done using dbg:ctp().</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">The documentation is confusing<br>
on the difference between dbg:stop/0 and dbg:stop_clear/0. Help?<br></blockquote><div><br></div><div>The documentation is indeed a confusing and I believe wrong. dbg:stop() does not clean the function trace patterns, while dbg:stop_clear() does. So the "and all trace patterns for all functions" part of the dbg:stop() documentation should be removed.</div><div><br></div><div>Thanks for pointing this out, I'll put a patch in for the next release. Unless someone can see something that I cannot?</div><div><br></div><div>Lukas</div></div></div></div>