Question: is it by purpose or on purpose?
Answer: (idiomatic) With purpose; intentionally; purposely. That wasn't an accident! You did it on purpose!