add more debug info for ternary operator

Change-Id: If9730b1d5c82672c1d750024bccdbc82ada44f25