redirect console trace in object code example Example 1: javascript dump strack trace console.trace(); Example 2: console trace js console.trace( [...any, ...data ]);