Depends on the problem.
Magic smoke: Electrical, possibly programming (Mecanum drive code on sticky wheels, trying to strafe, blows a Jaguar)
Robot slamming into walls: either driver or programming (mixed up drive code on wheels)
Clanking noises: Mechanical mostly, possibly programming (movement limits)
Actually, it is the programmer's fault.
