1. A numerical control device adapted to display an alarm message based on an alarm that occurs while controlling the operation of a machine, the numerical control device including a memory and a processor, the processor configured to perform a method comprising: issuing the alarm, interrupting the operation of the machine when the alarm occurs, and resuming operation of the machine after the alarm is released; associating information on an alarm including alarm number and type and parameters of the alarm with information on the history of an operation regarding an alarm corrective measure operation carried out by an operator operating the numerical control device and storing the associated information as alarm corrective measure operation history information; acquiring information on an operation carried out by the operator after an alarm is raised; generating alarm corrective measure operation history information on the basis of the alarm and the information on the operation and recording the generated alarm corrective measure operation history information; extracting, at the time of the occurrence of an alarm, alarm corrective measure operation history information on the basis of the information on the alarm; and displaying the extracted alarm corrective measure operation history information on a display unit; optimizing information on an operation included in the generated alarm corrective measure operation history information in order to release an alarm; and optimizing the extracted alarm corrective measure operation history information in order to release the alarm.