Added debug helper to ease reproduction of reported bugs