how to debug shader node by output the value?

for example, in the shader node I want to do some math operation on RGB, I want to know whether I connect the node in a right way, whether my operation uses the right formula and parameters, these can be done by checking R/G/B respectively.

I know we can use the output node, and click the pallette to see R/G/B, but we cannot see mullti color at the same time. So is there a way to output the numerical or python object value for debug?

thanks


this is a simplified code for demo only
where p0, p1, foc, a are all variant
if foc<p0:
    output=c0
elif foc>p1: 
    output=c1
else:
    c1*(1-a)+c2*(p1-foc)/(p1-p0)

what do you mean by that " and click the pallette to see R/G/B"

are you doing this inside a custom node scripting
or ordinary script for nodes?

happy bl