Not thoroughly or completely; imperfectly or with insufficient effort (most often used in negative constructions like 'not do things by halves').