how do you debug a material instance

if you dont mind me asking
how do variables or the variable base work in material instances?
ie how do you set variables in materials
are debug related variables the only variables you can set for output in a material?
can you set a parameter so that you can again read it or get it from a blueprint?