debug path trim