Add debug pragmas for polyline geometry exception.