Revert "[Truffle] Restore a basic version of set_trace_func."

This reverts commit 077a4ffb881e62b4d1fab78270a81cc500c0c252.