Move Debug object to a separate file