How can you see the data type of parameters in materials?

I’m trying to debug a material in the material editor, and I often run in to the same two problems:

  • I can’t tell whether what is being returned is a Scalar, a Vec2, Vec3 or something else.
  • I can’t tell the value of what is being returned by a function. I can see the value as a colour, but no numerical value is shown.

Is there a way of telling what is returned by a function? Both datatype and value?