[Truffle] Restore a basic version of set_trace_func.