The invention discloses a method for detecting GOOSE (generic object oriented substation event) messages of a digital substation, comprising the following steps of: firstly, introducing a system integrator-configured SCD (security coding device) file by a computer procedure, and displaying the GOOSE message contents of IED (intelligent electronic device), which are configured in the SCD file, on a software interface one by one; acquiring GOOSE heartbeat messages of the IED equipment, and displaying the heartbeat messages on the software interface one by one; and automatically comparing the GOOSE information in the SCD file with the acquired GOOSE messages, judging whether the GOOSE information in the SCD file and the acquired GOOSE messages are same or not, and analyzing. The method for automatically detecting the GOOSE messages is provided by using computer language, the introduced SCD file is compared with the captured GOOSE messages, the method can save a large quantity of manpower resources as compared with the prior art, the debugging efficiency of the digital substation can be improved, and the potential safety hazard can be reduced.