Dynamical dark energy in light of cosmic distance measurements I: a demonstration using simulated datasets