Debug for trace