[Plugin] GEngine is NULL, how to get the GEngine object?

After spending time debugging from the Visual Studio through the intermediate window. It seems that I couldn’t access GEngine from VS intermediate window

I know this right after I tried to assign the GEngine into a variable, and apparently GEngine is there all the time.

UEngine* engine = GEngine;

and the intermediate window seems to display the engine members correctly.