Some modems have special debug modes in that can do this too - then you get to know exactly how many meters along the wire the break is. When you get close, you can hook a resistor to the line and rerun the test and it'll tell you how many meters forward or back you need to go to find the issue.
Pretty easy to track issues down that way.