[erlang-questions] erlang:trace and bad argument

Raimo Niskanen raimo+erlang-questions@REDACTED
Mon Sep 15 14:33:07 CEST 2008


On Sun, Sep 14, 2008 at 11:33:06AM +0100, Joel Reymont wrote:
> What am I doing wrong here?
> 
> 20> erlang:trace(self(), false, [send]).
> 1
> 21> erlang:trace(self(), true, [send]).
> ** exception error: bad argument
>       in function  erlang:trace/3
>          called as erlang:trace(<0.93.0>,true,[send])
> 22> erlang:trace(self(), true, [call]).
> ** exception error: bad argument
>       in function  erlang:trace/3
>          called as erlang:trace(<0.99.0>,true,[call])

I think it is that you do not give a {tracer,Tracer}
flag, and the default is {tracer,self()}, which is
not allowed for arg1 = self(). You can not trace yourself.

> 
> 	Thanks, Joel
> 
> --
> wagerlabs.com
> 
> 
> 
> 
> 
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://www.erlang.org/mailman/listinfo/erlang-questions

-- 

/ Raimo Niskanen, Erlang/OTP, Ericsson AB



More information about the erlang-questions mailing list