We propose a direct measurement method that is applicable to both integral and fractional vortex beams. In this approach, the phase distribution of the vortex beam is visualized via the phase-shifting digital holography technique. The least square method is initiatively employed to improve the measurement precision. The maximal error of the experimental results is below 4.8%.