Step 1: H-bonding weakens X-H bond, changing force constant.
Step 2: IR probes vibrational transitions, directly detecting X-H stretching frequency change.
Step 3: UV probes electronic transitions, not sensitive to this.
\[\boxed{\text{IR spectroscopy}}\]