In the nitride semiconductor device of the present invention, an active layer 12 is sandwiched between a p-type nitride semiconductor layer 11 and an n-type nitride semiconductor layer 13. It then becomes possible to correct and test the program in a dynamic manner for preventing recurrence of this error. The bookmark processing unit is disposed in a processing unit. An axial coupling is equipped for locking the casing to the sheath element. Calculating a variable influence indicator for the selected variable and repeating the steps for other selected variables enables an evaluation among the selected variables to determine their influence in the phenomenon.