Examples
- If you think I took your charger, you're barking up the wrong tree.
- The engineers were barking up the wrong tree – the problem was the cable, not the software.
How to use it
Informal. Almost always in the continuous form: you're barking up the wrong tree.
Where it comes from
Probably from hunting dogs barking at the foot of a tree after their prey has escaped to another one.