How to identify which plugin causes error

Apart from studying the source code of each plugins, I can’t think of any other way.