Add transaction trace capability for debugging scripts