Add @debug method to modules