Add layers dump debug feature