If the operators commute, and the operators correspond to observables, then it is possible to make simultaneous measurements of the observables to arbitrary accuracy.
You show that two operators do or do not commute by applying the definition of commuting and doing the math. So start from the definition.